setCategories

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

Description:

Adds or update some categories.

Return

a map of errors or warnings

Since

2.0

Note: Applies to:

    - pois

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": {}

}
    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)

Parameters

data

: a JSON string


fun setCategories(categories: VMECategories): Map<String, Any>

Description:

Adds or update some categories.

Return

a map of errors or warnings

Since

2.4

Note: Applies to Pois

Parameters

categories