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.


MapContext.clearRouteClear the walking route on the map.
MapContext.gestureEnableEnable or disable all gestures.
MapContext.getCenterLocationGet the center location of the current map.
MapContext.moveToLocationDisplay 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.showRouteShow the default walking route planned. Only one route is displayed.
MapContext.showsCompassSet the visibility of the compass.
MapContext.updateComponentsUpdate the map API incrementally.