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 |
Clear the walking route on the map. | |
Enable or disable all gestures. | |
Get the center location of the current map. | |
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. | |
Show the default walking route planned. Only one route is displayed. | |
Set the visibility of the compass. | |
Update the map API incrementally. | |
Get the zoom level of the current map. | |
Get the skew angle of the current map. | |
Get the coordinates (the latitude and longitude) of the northeast and southwest corners of the current map. | |
Adjust (move and zoom) the visible area of the map to display the specified coordinates in the map view area. | |
Add, delete, or update the specified location marker. | |
Move the marker in the map. | |
Calculate the length of a path defined by a series of coordinate points, and calculate the coordinates of a target point on the path at a specified distance from the starting point. | |
Convert screen coordinates to corresponding latitude and longitude on the map. | |
Convert map coordinates to corresponding latitude and longitude on the screen. |