Index

MapViewLayers

A map is made of layers, a view to visualize them, interactions to modify map content and controls with UI components.

Overview
Creation
Events

The view manages the visual parameters of the map view, like resolution or rotation.

View with center, projection, resolution and rotation

Layers are lightweight containers that get their data from sources.

layer/Tile
layer/Image
layer/Vector
layer/VectorTile
ControlsInteractionsSources and formats
Map default controls
All controls
Map default interactions
Interactions for vector features All interactions
Tile sources for layer/Tile
Image sources for layer/Image
Vector sources for layer/Vector
Vector tile sources for layer/VectorTile
Formats for reading/writing vector data
format/WMSCapabilities
ProjectionsObservable objectsOther components

All coordinates and extents need to be provided in view projection (default: EPSG:3857). To transform, use proj.transform() and proj.transformExtent().

ol/proj

Changes to all ol/Objects can be observed by calling the object.on('propertychange') method. Listeners receive an ol/Object~ObjectEvent with information on the changed property and old value.

ol/Geolocation
ol/Overlay

 

API change policy

The OpenLayers API consists of

  • names and signatures of constructors
  • names and signatures of instance methods and properties
  • names and signatures of functions
  • names of constants

Within a major release series, the API will not be changed. Any changes to the API will be accompanied by a new major release.

Note: The API change policy does not cover CSS class names that are used to style the OpenLayers UI. It also does not cover any typedefs and enums.