Package Exports
- iotmapmanager
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iotmapmanager) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
IotMapManager
This library provides management of markers dedicated to projects using mapping.
marker definition
A marker is defined as follow (description will evoluate in the futur) :
{
id: string,
location: [num, num],
popup: string,
shape: {
shape: string,
color: string,
anchored: bool,
plain: bool
},
inner: {
color: string,
icon: string,
// *** OR ***
label: character
},
gauge: {
color: string,
percent: number
}
}- location is [lat, lon]
- popup is a string displayed in a popup when marker is clicked
- shape is 'circle', 'square' or 'poi'
- icon is not completely implemented. For the moment, can be 'bat' or 'temp'
- label is only one character. If string is sent, first character will be displayed
- set anchored to true to get an anchor
label and icon cannot be defined simultaneously : you can display only one of them. More options will arrive soon.
using iotMapManager
this library provides following functions :
- addMarker / addMarkers : send a marker structure or a list of marker structures
- updateMarker : send a marker id and a structure containing modified parameters
- deleteMarker / deleteMarkers : send a marker id or a list of marker ids