Skip to content

Create Map

createMap(containerId, backgroundColor opt) -> {Promise.<AXMap>}

Create a map

Parameters

Name Data Type Description
containerId string HTML tag ID of the display container for the map
backgroundColor string optional; map background color
glyphs string optional; map fonts

Return value Promise.<AXMap>

map instance

Example

JavaScript
1
2
3
...
const map = await axRobot.createMap("map", "#eeeeee");
...