setPois

fun setPois(data: String): Map<String, Any>

Adds or updates a list of dynamic poi to the map.

Return

A map of errors or warnings

Since

2.0

Parameters

data

A json string representing the poi information. Json must be formatted like this:

{
"PoiID_1": {
"name": "The name of the POI - label on surface and name search / Place information / routing ",
"description": "String : This represent the description of the POI, in HTML (use </br> instead of \n for example).",
"categories": ["CategoryID_1", "CategoryID_2","..." ], // Array of categoryID String
"icon": "String: path to icon used on place information / search / routing - PNG file - can be an relative path, or an url like http://, https://, data:image/png;base64,",
"fontColor": "#0000FF - color in hexadecimal format starting by #" // the color of the label if any
"features": {
"surface": {"color":"#0000FF - color in hexadecimal format starting by #"},
"image": {
"icon": "path to icon used on map" // Can be an relative path, or an url like http://, https://, data:image/png;base64,",
"scale":1.0, // Double - Icon size on map
"position":[45.74094,4.88483,0.0], // Array of Double: Lat, Lon, Alt
"orientation":[
"facing | fixedWithHeading | flat", // facing: Place is always camera facing, fixedWithHeading: Place is flat on ground and has a fixed heading, flat: Place is flat on ground and facing camera
30.0 // if fixedWithHeading, needs a Double after
],
"anchorMode": "topLeft" | "topCenter" | "topRight" | "centerLeft" | "center" | "centerRight" | "bottomLeft" | "bottomCenter" | "bottomRight" , // An anchor mode determines how an object is anchored to a given position within the map
"altitudeMode":"relative" | "absolute", // relative :The altitude is interpreted relative to the terrain, absolute: The altitude is interpreted as the height above the WGS84 ellipsoid.
"displayMode":"overlay" | "inlay", // inlay: The place will obscured when located behind map surfaces, overlay: The place is displayed on top of all map surfaces, regardless of whether they are physical infront of the place.
"visibilityRamp":[2.0,5.0,2000.0,5000.0] // Array of 4 Double [startVisible, fullyVisible, startInvisible, fullyInvisible]
}
}
},
"PoiID_2": {}
}