Controls initially added to the map. If not specified, module :ol/control/defaults.defaults is used.
Omit.controls
interactions?
Collection<Interaction> | Interaction[]
Interactions that are initially added to the map. If not specified, module :ol/interaction/defaults.defaults is used.
Omit.interactions
keyboardEventTarget?
string | HTMLElement | Document
The element to listen to keyboard events on. This determines when the KeyboardPan and KeyboardZoom interactions trigger. For example, if this option is set to document the 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 not document, the target element needs to be focused for key events to be emitted, requiring that the target element has a tabindex attribute.
Omit.keyboardEventTarget
layers?
BaseLayer[] | Collection<BaseLayer> | LayerGroup
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.
Omit.layers
maxTilesLoading?
number
Maximum number tiles to load simultaneously.
Omit.maxTilesLoading
moveTolerance?
number
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.
Omit.moveTolerance
overlays?
Collection<Overlay> | Overlay[]
Overlays initially added to the map. By default, no overlays are added.
Omit.overlays
pixelRatio?
number
The ratio between physical pixels and device-independent pixels (dips) on the device.
Omit.pixelRatio
target?
string | HTMLElement
The container for the map, either the element itself or the id of the element. If not specified at construction time, module :ol/Map~Map#setTarget must be called for the map to be rendered. If passed by element, the container can be in a secondary document. For accessibility (focus and keyboard events for map navigation), the target element must have a properly configured tabindex attribute. If the target element is inside a Shadow DOM, the tabindex atribute must be set on the custom element's host element. Note: CSS transform support for the target element is limited to scale.