Classes
Type Definitions
-
AtPixelOptions{Object}
-
Properties:
Name Type Argument Default Description layerFilterundefined | function <optional>
Layer filter function. The filter function will receive one argument, the
layer-candidateand it should return a boolean value. Only layers which are visible and for which this function returnstruewill be tested for features. By default, all visible layers will be tested.hitTolerancenumber <optional>
0 Hit-detection tolerance in pixels. Pixels inside the radius around the given position will be checked for features.
checkWrappedboolean <optional>
true Check-Wrapped Will check for for wrapped geometries inside the range of +/- 1 world width. Works only if a projection is used that can be wrapped.
-
DeclutterItems{Object}
-
Properties:
Name Type Description itemsArray.<*> Declutter items of an executor.
opacitynumber Layer opacity.
-
FrameState{Object}
-
State of the current frame. Only
pixelRatio,timeandviewStateshould be used in applications.Properties:
Name Type Description pixelRationumber The pixel ratio of the frame.
timenumber The time when rendering of the frame was requested.
viewStatemodule:ol/View~State The state of the current view.
animateboolean coordinateToPixelTransformmodule:ol/transform~Transform extentnull | module:ol/extent~Extent declutterItemsArray.<module:ol/PluggableMap~DeclutterItems> indexnumber layerStatesArrayArray.<module:ol/layer/Layer~State> layerIndexnumber pixelToCoordinateTransformmodule:ol/transform~Transform postRenderFunctionsArray.<module:ol/PluggableMap~PostRenderFunction> sizemodule:ol/size~Size tileQueuemodule:ol/TileQueue~TileQueue usedTilesObject.<string, Object.<string, boolean>> viewHintsArray.<number> wantedTilesObject.<string, Object.<string, boolean>> -
MapOptions{Object}
-
Object literal with config options for the map.
Properties:
Name Type Argument Default Description controlsmodule:ol/Collection~Collection.<module:ol/control/Control~Control> | Array.<module:ol/control/Control~Control> <optional>
Controls initially added to the map. If not specified,
module:ol/control~defaultsis used.pixelRationumber <optional>
window.devicePixelRatio The ratio between physical pixels and device-independent pixels (dips) on the device.
interactionsmodule:ol/Collection~Collection.<module:ol/interaction/Interaction~Interaction> | Array.<module:ol/interaction/Interaction~Interaction> <optional>
Interactions that are initially added to the map. If not specified,
module:ol/interaction~defaultsis used.keyboardEventTargetHTMLElement | Document | string <optional>
The element to listen to keyboard events on. This determines when the
KeyboardPanandKeyboardZoominteractions trigger. For example, if this option is set todocumentthe keyboard interactions will always trigger. If this option is not specified, the element the library listens to keyboard events on is the map target (i.e. the user-provided div for the map). If this is notdocument, the target element needs to be focused for key events to be emitted, requiring that the target element has atabindexattribute.layersArray.<module:ol/layer/Base~BaseLayer> | module:ol/Collection~Collection.<module:ol/layer/Base~BaseLayer> | module:ol/layer/Group~LayerGroup <optional>
Layers. If this is not defined, a map with no layers will be rendered. Note that layers are rendered in the order supplied, so if you want, for example, a vector layer to appear on top of a tile layer, it must come after the tile layer.
maxTilesLoadingnumber <optional>
16 Maximum number tiles to load simultaneously.
moveTolerancenumber <optional>
1 The minimum distance in pixels the cursor must move to be detected as a map move event instead of a click. Increasing this value can make it easier to click on the map.
overlaysmodule:ol/Collection~Collection.<module:ol/Overlay~Overlay> | Array.<module:ol/Overlay~Overlay> <optional>
Overlays initially added to the map. By default, no overlays are added.
targetHTMLElement | string <optional>
The container for the map, either the element itself or the
idof the element. If not specified at construction time,module:ol/Map~Map#setTargetmust be called for the map to be rendered.viewmodule:ol/View~View <optional>
The map's view. No layer sources will be fetched unless this is specified at construction time or through
module:ol/Map~Map#setView. -
MapOptionsInternal{Object}
-
Properties:
Name Type Argument Description controlsmodule:ol/Collection~Collection.<module:ol/control/Control~Control> <optional>
interactionsmodule:ol/Collection~Collection.<module:ol/interaction/Interaction~Interaction> <optional>
keyboardEventTargetHTMLElement | Document overlaysmodule:ol/Collection~Collection.<module:ol/Overlay~Overlay> valuesObject.<string, *> -
PostRenderFunction()
PluggableMap.js, line 62 -
OpenLayers