MapContext Overview
Call my.createMapContext to obtain a MapContext instance. A MapConext instance is bound with a map component through its ID. Manipulate the corresponding map component through MapContext.
Methods
Option | Description |
MapContext.clearRoute | Clear the walking route on the map. |
MapContext.gestureEnable | Enable or disable all gestures. |
MapContext.getCenterLocation | Get the center location of the current map. |
MapContext.moveToLocation | Display the pinned location at the center of the map and restore the default zoom level. Use this method together with the show-location method of the map component. |
MapContext.showRoute | Show the default walking route planned. Only one route is displayed. |
MapContext.showsCompass | Set the visibility of the compass. |
MapContext.updateComponents | Update the map API incrementally. |