$(function () { var options; // Type: wijmo.maps.wijmaps.options $(".selector").wijmaps(options); });
function wijmaps() : any;
Display online maps from various built-in and custom sources with smooth zooming,
panning, and mapping between screen and geographical coordinates.
$(function () { var options; // Type: wijmo.maps.wijmaps.options $(".selector").wijmaps(options); });
function wijmaps() : any;
Name | Description | |
---|---|---|
bingMapsKey | Default value: "" The bing mpas key of the bing maps source. | |
center | The center of wijmaps view port, in geographic unit. |
|
layers | Default value: [] Defines the array of layers append to the wijmaps. |
|
showTools | Default value: true Determine whether show the tools layer. | |
source | Default value: 'bingMapsRoadSource' The source of the wijmaps tile layer. Wijmaps provides some built in sources: <ul> <li>bingMapsRoadSource</li> <li>bingMapsAerialSource</li> <li>bingMapsHybridSource</li> </ul> Set to null if want to hide the tile layer.<br> Set to a IMultiScaleTileSource object if want to use another map tile server. | |
targetCenter | The targer center of the wijmaps to translate. |
|
targetCenterSpeed | Default value: 0.3 The speed for translate the wijmaps from current center to target center. | |
targetZoom | The target zoom of the wijmaps to scale. | |
targetZoomSpeed | Default value: 0.3 The speed for scaling the wijmaps from current zoom to target zoom. | |
zoom | Default value: 1 The current zoom of the wijmaps. |
Name | Description | |
---|---|---|
destroy | Removes the wijmaps functionality completely. This will return the element back to its pre-init state. | |
distance | Calculate the distance between two points. | |
geographicToView | Convert the point from geographic unit (longitude and latitude) to screen unit (pixel). | |
logicToView | Convert the point from logic unit (percentage) to screen unit (pixel). | |
refreshLayers | Refresh the map layers. Usually used when the items of the layer data changed. | |
viewToGeographic | Convert the point from screen unit (pixel) to geographic unit (longitude and latitude). | |
viewToLogic | Convert the point from screen unit (pixel) to logic unit (percentage). | |
widget | Returns a jQuery object containing the original element or other relevant generated element. |
Name | Description | |
---|---|---|
centerChanged | This is a callback function called after the center of the wijmaps changed. | |
targetCenterChanged | This is a callback function called after the target center of the wijmaps changed. | |
targetZoomChanged | This is a callback function called after the target zoom of the wijmaps changed. | |
zoomChanged | This is a callback function called after the zoom of the wijmaps changed. |