set Categories
Description:
Adds or update some categories.
Return
a map of errors or warnings
Since
2.0
Note: Applies to:
- pois
Content copied to clipboard
Note: Json must be formatted like this:
{
"CategoryID_1": {
"name": "A String",
"icon": "String: path to icon used on map - can be an relative path, or an url like http://, https://, data:image/png;base64,"
},
"CategoryID_2": {}
}
Content copied to clipboard
val categoryData = """
{
"CategogyID": {
"name": "The name",
"icon": "media/map/visio_island_essentials/category_service.png"
}
}
"""
val categoryJson = JSONObject(catetoryData)
val result = mMapController.setCategories(data: categoryJson)
Content copied to clipboard
Parameters
data
: a JSON string
Description:
Adds or update some categories.
Return
a map of errors or warnings
Since
2.4
Note: Applies to Pois
Parameters
categories