Namespace: ol

ol

Classes

Attribution
Collection
CollectionEvent
DeviceOrientation
DragBoxEvent
DrawEvent
Feature
FeatureOverlay
Geolocation
ImageTile
IView
IView2D
IView3D
Kinetic
Map
MapBrowserEvent
MapEvent
Object
ObjectEvent
Observable
Overlay
Sphere
Tile
TileCoord
View
View2D

Namespaces

animation
BrowserFeature
control
events
feature
geom
interaction
layer
proj
render
source
tilegrid

Members

experimental staticol.inherits

ol.inherits is an alias to the goog.inherits function. It is exported for use in non-compiled application code.

FIXME: We use a new line to fake the linter. Without the new line the linter complains with:

"Missing newline between constructor and goog.inherits"

Type Definitions

experimental ol.CanvasFunctionType()

A function returning the canvas element ({HTMLCanvasElement}) used by the source as an image. The arguments passed to the function are: ol.Extent the image extent, {number} the image resolution, {number} the device pixel ratio, ol.Size the image size, and ol.proj.Projection the image projection. The canvas returned by this function is cached by the source. The this keyword inside the function references the ol.source.ImageCanvas.

experimental ol.CenterConstraintType()

experimental ol.CoordinateArray.<number>

An array of numbers representing a coordinate. Example: [16, 48].

experimental ol.CoordinateArrayArray.<ol.Coordinate>

An array of coordinate arrays.

experimental ol.CoordinateFormatType()

A function that takes a ol.Coordinate and transforms it into a {string}.

experimental ol.ExtentArray.<number>

An array of numbers representing an extent: [minx, miny, maxx, maxy].

experimental ol.OverlayPositioningstring

Overlay position: 'bottom-left', 'bottom-center', 'bottom-right', 'center-left', 'center-center', 'center-right', 'top-left', 'top-center', 'top-right'

experimental ol.PixelArray.<number>

An array with two elements, representing a pixel. The first element is the x-coordinate, the second the y-coordinate of the pixel.

experimental ol.PreRenderFunction()

Function to perform manipulations before rendering. This function is called with the ol.Map as first and an optional oli.FrameState as second argument. Return true to keep this function for the next frame, false to remove it.

experimental ol.RendererHintstring

Available renderers: 'canvas', 'dom' or 'webgl'.

experimental ol.SizeArray.<number>

An array of numbers representing a size: [width, height].

experimental ol.TileLoadFunctionType()

A function that takes an ol.ImageTile for the image tile and a {string} for the src as arguments.

experimental ol.TileUrlFunctionType()

A function that takes an ol.TileCoord for the tile coordinate, a {number} representing the pixel ratio and an ol.proj.Projection for the projection as arguments and returns a {string} or undefined representing the tile URL.

experimental ol.TransformFunction()

A transform function accepts an array of input coordinate values, an optional output array, and an optional dimension (default should be 2). The function transforms the input coordinate values, populates the output array, and returns the output array.