You can also add actions and title to your SideCard like such:
Support for custom icons is still in my TODO list!
We currently only support the following icons:
- icon-info
- icon-circle
- icon-square
- icon-clear
- icon-linegraph
- icon-info2
- icon-gps_not_fixed
- icon-gps_fixe
A SideCard helps adding information to the map. Extends this class to make a custom one. SideCard has support for actions and values.
const mapsterSideCard = new Mapster.SideCard({ subtitle: 'hace 5 min.', values: [ { label: 'ID', value: '959483', }, { label: 'BaterĂa', value: '12.5 V', }, ], }) // Add SideCard to map map.setSideCard(mapsterSideCard);You can also add actions and title to your SideCard like such:
Support for custom icons is still in my TODO list! We currently only support the following icons: - icon-info - icon-circle - icon-square - icon-clear - icon-linegraph - icon-info2 - icon-gps_not_fixed - icon-gps_fixeconst mapsterSideCard = new Mapster.SideCard({ subtitle: 'hace 5 min.', title: 'title', values: [ { label: 'ID', value: '959483', }, { label: 'BaterĂa', value: '12.5 V', }, ], actions: [{ icon: "icon-clear", label: "hey", }] }) // Add SideCard to map baseMap.setSideCard(mapsterSideCard);