- Source:
- ol.jsdoc, line 1
Classes
- ol.Attribution
- ol.Collection
- ol.DeviceOrientation
- ol.Feature
- ol.Geolocation
- ol.Map
- ol.MapBrowserEvent
- ol.Object
- ol.Overlay
- ol.Projection
- ol.View2D
Namespaces
Members
-
<static> inherits
-
ol.inherits is an alias to the goog.inherits function. It is exported for use in non-compiled application code. See ol.exports.
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"
- Source:
- ol.js, line 13
-
<static> OverlayPositioning :string
-
- Source:
- overlay.js, line 30
Properties:
Name Type Default Description BOTTOM_LEFTstring bottom-left BOTTOM_RIGHTstring bottom-right TOP_LEFTstring top-left TOP_RIGHTstring top-right -
<static> ProjectionUnits :string
-
- Source:
- proj.js, line 37
Properties:
Name Type Default Description DEGREESstring degrees FEETstring ft METERSstring m -
<static> RendererHint :string
-
- Source:
- map.js, line 92
Properties:
Name Type Default Description CANVASstring canvas DOMstring dom WEBGLstring webgl
TypeDefs
-
AttributionOptions
-
- Source:
- objectliterals.jsdoc, line 1
Properties:
Name Type Description htmlstring HTML markup for this attribution.
tileRangesObject.<string, Array.<ol.TileRange>> | undefined Tile ranges (FOR INTERNAL USE ONLY).
-
Coordinate
-
An array representing a coordinate.
- Source:
- coordinate.js, line 15
-
DeviceOrientationOptions
-
- Source:
- objectliterals.jsdoc, line 3
Properties:
Name Type Description trackingboolean | undefined Tracking.
-
GeolocationOptions
-
- Source:
- objectliterals.jsdoc, line 5
Properties:
Name Type Description trackingboolean | undefined Tracking.
trackingOptionsGeolocationPositionOptions | undefined Tracking options.
projectionol.ProjectionLike Projection.
-
GetFeatureInfoOptions
-
- Source:
- objectliterals.jsdoc, line 7
Properties:
Name Type Description pixelol.Pixel Pixel coordinate relative to the map viewport.
layersArray.<ol.layer.Layer> | undefined Layers to restrict the query to. All map layers will be queried if not provided.
successfunction Callback for successful queries. The passed argument is the resulting feature information for each layer, with array indices being the same as in the passed
layersarray or in the layer collection as returned fromol.Map#getLayers()if nolayerswere provided.errorfunction | undefined Callback for unsuccessful queries. Note that queries with no matching features trigger the success callback, not the error callback.
-
GetFeaturesOptions
-
- Source:
- objectliterals.jsdoc, line 9
Properties:
Name Type Description pixelol.Pixel Pixel coordinate relative to the map viewport.
layersArray.<ol.layer.Layer> | undefined Layers to restrict the query to. All layers will be queried if not provided.
successfunction Callback for successful queries. The passed argument is the resulting features for each layer, with array indices being the same as in the passed
layersarray or in the layer collection as returned fromol.Map#getLayers()if no layers were provided.errorfunction | undefined Callback for unsuccessful queries. Note that queries with no matching features trigger the success callback, not the error callback.
-
MapOptions
-
Object literal with config options for the map.
- Source:
- objectliterals.jsdoc, line 11
Properties:
Name Type Description controlsol.Collection | Array.<ol.control.Control> | undefined Controls initially added to the map.
interactionsol.Collection | undefined Interactions.
layersArray.<ol.layer.Base> | ol.Collection | undefined Layers.
overlaysol.Collection | Array.<ol.Overlay> | undefined Overlays initially added to the map.
rendererol.RendererHint | undefined Renderer.
renderersArray.<ol.RendererHint> | undefined Renderers.
targetElement | string | undefined The container for the map.
viewol.IView | undefined The map's view. Currently ol.View2D is available as view.
-
OverlayOptions
-
Object literal with config options for the overlay.
- Source:
- objectliterals.jsdoc, line 13
Properties:
Name Type Description elementElement | undefined The overlay element.
positionol.Coordinate | undefined The overlay position in map projection.
positioningol.OverlayPositioning | undefined Positioning.
-
Proj4jsProjectionOptions
-
Object literal with config options for the Proj4js projection.
- Source:
- objectliterals.jsdoc, line 15
Properties:
Name Type Description codestring The SRS identifier code, e.g. 'EPSG:31256'.
extentol.Extent | undefined The validity extent for the SRS.
globalboolean | undefined Whether the projection is valid for the whole globe. Default is false.
-
ProjectionLike
-
A projection as ol.Projection, SRS identifier string or undefined.
- Source:
- proj.js, line 27
-
ProjectionOptions
-
Object literal with config options for the projection.
- Source:
- objectliterals.jsdoc, line 17
Properties:
Name Type Description codestring The SRS identifier code, e.g. 'EPSG:4326'.
unitsol.ProjectionUnits Units.
extentol.Extent | undefined The validity extent for the SRS.
axisOrientationstring | undefined The axis orientation as specified in Proj4. The default is 'enu'.
globalboolean | undefined Whether the projection is valid for the whole globe. Default is false.
-
Size
-
An array representing a size: [width, height].
- Source:
- size.js, line 5
-
View2DOptions
-
Object literal with config options for the view.
- Source:
- objectliterals.jsdoc, line 19
Properties:
Name Type Description centerol.Coordinate | undefined The initial center for the view. The coordinate system for the center is specified with the
projectionoption.maxResolutionnumber | undefined The maximum resolution used to determine the resolution constraint. It is used together with
maxZoomandzoomFactor. If unspecified it is calculated in such a way that the projection's validity extent fits in a 256x256 px tile. If the projection is Spherical Mercator (the default) thenmaxResolutiondefaults to 40075016.68557849 / 256 = 156543.03392804097.maxZoomnumber | undefined The maximum zoom level used to determine the resolution constraint. It is used together with
maxResolutionandzoomFactor. Default is 28.projectionol.ProjectionLike The projection. Default is
EPSG:3857(Spherical Mercator).resolutionnumber | undefined The initial resolution for the view. The units are
projectionunits per pixel (e.g. meters per pixel).resolutionsArray.<number> | undefined Resolutions to determine the resolution constraint. If set the
maxResolution,maxZoomandzoomFactoroptions are ignored.rotationnumber | undefined The initial rotation for the view in radians (positive rotation clockwise).
zoomnumber | undefined Zoom level used to calculate the initial resolution for the view. The initial resolution is determined using the
ol.View2D#constrainResolutionmethod.zoomFactornumber | undefined The zoom factor used to determine the resolution constraint. It is together with
maxResolutionandmaxZoom. Default is 2.