The object has already been disposed.
Add the given control to the map.
Add the given interaction to the map. If you want to add an interaction at another point of the collection use getInteraction() and the methods available on {@link module:ol/Collection~Collection}. This can be used to stop the event propagation from the handleEvent function. The interactions get to handle the events in the reverse order of this collection.
Adds the given layer to the top of this map. If you want to add a layer elsewhere in the stack, use getLayers() and the methods available on {@link module:ol/Collection~Collection}.
Add the given overlay to the map.
Increases the revision counter and dispatches a 'change' event.
Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.
Clean up.
Clean up.
Detect features that intersect a pixel on the viewport, and execute a callback with each intersecting feature. Layers included in the detection can be configured through the layerFilter option in opt_options.
Detect layers that have a color value at a pixel on the viewport, and execute a callback with each matching layer. Layers included in the detection can be configured through opt_layerFilter. Note: this may give false positives unless the map layers have had different className properties assigned to them.
Gets a value.
Get the map controls. Modifying this collection changes the controls associated with the map.
Get the coordinate for a given pixel. This returns a coordinate in the user projection.
Get the coordinate for a given pixel. This returns a coordinate in the map view projection.
Returns the coordinate in user projection for a browser event.
Returns the coordinate in view projection for a browser event.
Returns the map pixel position for a browser event relative to the viewport.
Get all features that intersect a pixel on the viewport.
Get the map interactions. Modifying this collection changes the interactions associated with the map. Interactions are used for e.g. pan, zoom and rotate.
Get a list of object property names.
Get the layergroup associated with this map.
Get the collection of layers associated with this map.
Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.
Get an overlay by its identifier (the value returned by overlay.getId()). Note that the index treats string and numeric identifiers as the same. So map.getOverlayById(2) will return an overlay with id '2' or 2.
Get the element that serves as the container for overlays. Elements added to this container will let mousedown and touchstart events through to the map, so clicks and gestures on an overlay will trigger {@link module:ol/MapBrowserEvent~MapBrowserEvent} events.
Get the element that serves as a container for overlays that don't allow event propagation. Elements added to this container won't let mousedown and touchstart events through to the map, so clicks and gestures on an overlay don't trigger any {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
Get the map overlays. Modifying this collection changes the overlays associated with the map.
Get the pixel for a coordinate. This takes a coordinate in the user projection and returns the corresponding pixel.
Get the pixel for a coordinate. This takes a coordinate in the map view projection and returns the corresponding pixel.
Get an object of all property names and values.
Get the map renderer.
Get the version number for this object. Each time the object is modified, its version number will be incremented.
Get the size of this map.
Get the target in which this map is rendered. Note that this returns what is entered as an option or in setTarget: if that was an element, it returns an element; if a string, it returns that.
Get the DOM element into which this map is rendered. In contrast to getTarget this method always return an Element, or null if the map has no target.
Get the view associated with this map. A view manages properties such as center and resolution.
Get the element that serves as the map viewport.
Detect if features intersect a pixel on the viewport. Layers included in the detection can be configured through opt_layerFilter.
Redraws all text after new fonts have loaded
Remove the given control from the map.
Remove the given interaction from the map.
Removes the given layer from the map.
Remove the given overlay from the map.
Request a map rendering (at the next animation frame).
Requests an immediate render in a synchronous manner.
Sets a value.
Sets the layergroup of this map.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Set the size of this map.
Set the target element to render this map into.
Set the view for this map.
Unsets a property.
Force a recalculation of the map viewport size. This should be called when third-party code changes the size of the map viewport.
Generated using TypeDoc
地图对象接口