The MapBase type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MapBase |
Methods
| Name | Description | |
|---|---|---|
| addGraphic | Adds a GraphicFeature or GraphicFeatureGroup to the canvas | |
| cancelGetGeometry | Cancels user geometry input initiated by method [getGeometry]. | |
| checkMapsize | Checks the current size of the map view for any change. | |
| dispose | Disposes the map and cleans up. | |
| getGeometry | Enables the user to draw a shape on the map. | |
| getShapeCount | Gets the number of graphic features in the canvas. | |
| initialize | Initializes the map control. | |
| panTo | Pans the map to center around the provided center | |
| refresh | ||
| refreshGraphics | Redraws the graphics on the screen | |
| refreshLayer | ||
| removeGraphic | Remove a GraphicFeature or GraphicFeatureGroup from the canvas | |
| removeKeyAction | Removes the specified key action from the map. | |
| setKeyAction | Sets the action to perform on the map when the a specific key is pressed. | |
| stepExtentHistory | Steps back and forth in the extent history. | |
| toMapPoint | Converts a point relative to the corner of the map window
in pixel units into map units. | |
| toScreenPoint | Converts an absolute point in map units to a screen point | |
| zoom | Zooms the map around a given center on the screen. | |
| zoomTo | Zooms the map, and centers around a given center | |
| zoomToBox | Zooms the map, and centers around a given center |
Properties
| Name | Description | |
|---|---|---|
| center |
Gets the center of the current map view.
| |
| cursor | Gets or sets the map cursor name | |
| disableNavigationAnimation | If true, disables zoom and pan animations | |
| disableScrollWheelZoom | If true, disables zoom using scrollwheel | |
| dynTileSize | Gets or sets the rotation of the map | |
| enableMouseWheel | If true enables the mouse wheel for zooming. | |
| extent |
Gets or sets the extent of the current map view
| |
| layers | Gets or sets the layer collection the maps uses. | |
| loadTilesContinously |
Gets or sets whether the tiles should continuously load while panning, or wait until panning has stopped.
| |
| maxZoom | Gets or sets the maximum pixel size you are allowed to zoom to, or null/Number.POSITIVE_INFINITY if unrestricted.
This value is ignored when using tiled maps. | |
| minZoom | Gets or sets the minimum pixel size you are allowed to zoom to, or null/0 if unrestricted.
This value is ignored when using tiled maps. | |
| mouseMode | Gets or sets the current map mode | |
| mouseWheelDirection | If true, scroll-down zooms out. | |
| pixelSize | Gets the current size of a pixel in map units. | |
| progressBarAlignment | Gets or sets the alignment of the progressbar | |
| progressBarEnabled | Gets or sets whether the progressbar is enabled or disabled. | |
| rotation | Gets or sets the rotation of the map | |
| spatialReference | Gets or sets the spatial reference of the map. | |
| tileBuffer |
Gets or sets the buffer in pixels around the viewport where tiles are preserved when panning.
Any tiles completely outside the buffer will be removed from the browser.
|
Events
| Name | Description | |
|---|---|---|
| click | The click event is fired when a mouse button is clicked pushed down and up again without dragging. | |
| dblclick | The click event is fired when the map is double-clicked. | |
| extentChanged | Fired when the extent is changed. | |
| extentChanging | Fired continuously when the extent is changing. | |
| gridOriginChanged | Fired when grid origin has changed. | |
| keyDown | Fired when a key was pressed down while the map was in focus. | |
| keyUp | The keyUp event is fired when a key is released while the map was in focus.. | |
| mapResized | Fired when the map detects a change in its viewport size. | |
| mouseDown | The mouseDown event is fired when a mouse button is pressed down on the map. | |
| mouseDragCompleted | The mouseDragCompleted event is fired when a drag has ended. | |
| mouseDragging | The mouseDragging event is fired when the left mousebutton is down and the mouse moves on the map. | |
| mouseMove | The mouseMove event is fired when the mouse moves over the map. | |
| mouseOut | The mouseOut event is fired when the mouse moves out of the map. | |
| mouseOver | The mouseUp event is fired when a mouse button is released on the map. | |
| mouseUp | The mouseUp event is fired when a mouse button is released on the map. | |
| onProgress | Fired when number of images in the requestqueue is changed. | |
| panCompleted | Fired when a pan has completed. | |
| panning | Fired continuously when the map is panning. | |
| zoomCompleted | Fired when a zoom has completed. | |
| zoomStart | Fired when a zoom is starting. |