Manage template

Templates are used to change map designs by applying them to containers.

getAllTemplates

Fetch all templates availables for current map

Parameters

No parameter

Result

Nametypedescription
templatesTemplate[]All available templates

Example

Javascript
Swift
Java
Copy

setLocalTemplate

Apply a template to a container

Parameters

Nametypedescription
containernumbercontainer id to apply template
templatenumbertemplate id to used

Result

No result

Example

Javascript
Swift
Java
Copy

clearLocalTemplate

Remove a template from a container

Parameters

Nametypedescription
containernumbercontainer id
templatenumber(optionnal) if set, remove only this template, if null, remove all templates

Result

No result

Example

Javascript
Swift
Java
Copy

clearAllLocalTemplates

Remove all templates or one template for all containers

Parameters

Nametypedescription
templatenumber(optionnal) if set, remove only this template for all containers, if null, remove all templates for all containers

Result

No result

Example

Javascript
Swift
Java
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard