API / geotoolkit / map / Map / Map
Type Aliases
Type Aliases
Ƭ EventMap: EventMap & { LayerAdded: AbstractLayer[] ; LayerRemoved: AbstractLayer[] ; LayersModified: AbstractLayer[] ; onDoubleClick: ZoomEventArgs ; onResize: Rect ; onZoomEnd: ZoomEventArgs ; onZoomStart: ZoomEventArgs }
Ƭ FlyToOptions: Object
animation fly options
| Name | Type | Description |
|---|---|---|
callback? | (status: FlyStatus) => void | callback to be called when fly is over. Receives FlyStatus enum to check if animation was finished or interrupted by user actions. |
duration? | number | positive fly duration (in ms) |
easing? | Functions | easing function for viewport change |
level? | number | final point zoom level (see .setZoomLevel for more info). Has less priority than 'scale', if both provided. |
location? | Point | Options | [number, number] | Point[] | Options[] | final point location. May be a point, an array ([x, y]), coordinates object of the form {x: x, y: y}, or array of such locations to move along the corresponding trajectory |
scale? | number | final point scale (see .setMapScale for more info) |
system? | GeodeticSystem | AbstractSystem | coordinate system for the location coordinates. Latitude/longitude is used by default. |
Ƭ Options: Options & OptionsBase & { bounds?: Rect ; layerscontainer?: Group<AbstractLayer> ; model?: Group ; system?: GeodeticSystem | AbstractSystem ; tooltip?: { alignment?: AnchorType ; autoflip?: boolean ; autoupdate?: boolean ; delay?: number | null ; divelement?: HTMLElement ; fadeduration?: number | null ; hidedelay?: number | null ; max?: number ; mode?: PointerMode | string ; offsetx?: number ; offsety?: number ; showdelay?: number | null } ; viewcache?: boolean ; viewcacheasync?: boolean ; viewcachememorylimit?: number ; viewcachemode?: CacheMode ; viewcachesize?: { height?: number ; width?: number } ; wrapped?: boolean }
Data passed in
Ƭ OptionsBase: Object
options
| Name | Type | Description |
|---|---|---|
mapimage? | Image | image to be displayed locked at the bottom right of the map |
maplimits? | Rect | limits of the map |
mapscale? | number | sets the initial map scale |
mapscaleobject? | MapScale | MapScale information to be locked at the bottom left of the map |
scaleunit? | AbstractUnit | string | scale unit |
webmap? | string | ObjectType | the ArcGIS WebMap server url or WebMap JSON settings object. The old webmap layers will be removed. if the url equals to loaded webmap url then nothing happens. |
webmapservice? | AbstractHttpService | Http service to be used for the WebMap server |
zoom? | { easing?: Functions ; max?: number ; min?: number ; speed?: number ; time?: number } | map zoom options |
zoom.easing? | Functions | easing animation function for elastic zooming |
zoom.max? | number | maximum zoom limit (i.e. '500' value means user cannot zoom-out after 1:500 scale - 500 meters in 1 pixel). Scale is counted on the equator (by .getMapScale() method), so it can be different with the actual scale on current parallel |
zoom.min? | number | minimum zoom limit (i.e. '100' value means user cannot zoom-in after 1:100 scale - 100 meters in 1 pixel). Scale is counted on the equator (by .getMapScale() method), so it can be different with the actual scale on current parallel |
zoom.speed? | number | zoom speed (e.g. 2 means that zoom-in brings the map x2 times closer) |
zoom.time? | number | zoom time in milliseconds (set to 0 for instant zoom) |
Ƭ Tools: { measure: Measure ; polygon-selection: PolygonSelection ; tooltip: ToolTipTool } & Tools