Namespaces
Type Definitions
-
olx.AttributionOptions{Object} experimental
-
Properties:
Name Type Argument Description htmlstring HTML markup for this attribution.
tileRangesObject.<string, Array.<ol.TileRange>> | undefined <optional>
Tile ranges (FOR INTERNAL USE ONLY).
-
olx.DeviceOptions{Object} experimental
-
Properties:
Name Type Description loadTilesWhileAnimatingboolean | undefined When set to false, no tiles will be loaded while animating, which improves responsiveness on devices with slow memory. Default is
true.loadTilesWhileInteractingboolean | undefined When set to false, no tiles will be loaded while interacting, which improves responsiveness on devices with slow memory. Default is
true. -
olx.DeviceOrientationOptions{Object} experimental
-
Properties:
Name Type Argument Description trackingboolean | undefined <optional>
Start tracking. Default is
false. -
olx.FeatureOverlayOptions{Object} experimental
-
Properties:
Name Type Argument Description featuresArray.<ol.Feature> | ol.Collection | undefined <optional>
Features.
mapol.Map | undefined <optional>
Map.
styleol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction | undefined <optional>
Feature style.
-
olx.FrameState{Object} experimental
-
Properties:
Name Type Description pixelRationumber timenumber view2DStateolx.View2DState -
olx.GeolocationOptions{Object} experimental
-
Properties:
Name Type Argument Description trackingboolean | undefined <optional>
Start Tracking. Default is
false.trackingOptionsGeolocationPositionOptions | undefined <optional>
Tracking options. See http://www.w3.org/TR/geolocation-API/#position_options_interface.
projectionol.proj.ProjectionLike Projection.
-
olx.MapOptions{Object} experimental
-
Object literal with config options for the map.
Properties:
Name Type Argument Description controlsol.Collection | Array.<ol.control.Control> | undefined <optional>
Controls initially added to the map.
deviceOptionsolx.DeviceOptions | undefined <optional>
Device options for the map.
pixelRationumber | undefined <optional>
The ratio between physical pixels and device-independent pixels (dips) on the device. If
undefinedthen it gets set by usingol.BrowserFeature.DEVICE_PIXEL_RATIO.interactionsol.Collection | Array.<ol.interaction.Interaction> | undefined <optional>
Interactions that are initially added to the map.
keyboardEventTargetElement | Document | string | undefined <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 notdocumentthe target element needs to be focused for key events to be emitted, requiring that the target element has atabindexattribute.layersArray.<ol.layer.Base> | ol.Collection | undefined <optional>
Layers.
ol3Logoboolean | undefined <optional>
Show ol3 logo. Default is
true.overlaysol.Collection | Array.<ol.Overlay> | undefined <optional>
Overlays initially added to the map.
rendererol.RendererType | Array.<(ol.RendererType|string)> | string | undefined <optional>
Renderer.
targetElement | string | undefined <optional>
The container for the map.
viewol.IView | undefined <optional>
The map's view.
-
olx.OverlayOptions{Object} experimental
-
Object literal with config options for the overlay.
Properties:
Name Type Argument Description elementElement | undefined <optional>
The overlay element.
positionol.Coordinate | undefined <optional>
The overlay position in map projection.
positioningol.OverlayPositioning | string | undefined <optional>
Positioning.
stopEventboolean | undefined <optional>
Whether event propagation to the map viewport should be stopped. Default is
true. Iftruethe overlay is placed in the same container as that of the controls (ol-overlaycontainer-stopevent).insertFirstboolean | undefined <optional>
Whether the overlay is inserted first in the overlay container, or appended. Default is
true. If the overlay is placed in the same container as that of the controls (see thestopEventoption) you will probably setinsertFirsttotrueso the overlay is displayed below the controls.offsetXnumber | undefined <optional>
Horizontal offset in pixels. A positive will shift the overlay right. Default is
0.offsetYnumber | undefined <optional>
Vertical offset in pixels. A positive will shift the overlay down. Default is
0. -
olx.Proj4jsProjectionOptions{Object} experimental
-
Object literal with config options for the Proj4js projection.
Properties:
Name Type Argument Description codestring The SRS identifier code, e.g.
EPSG:31256.extentol.Extent | undefined <optional>
The validity extent for the SRS.
globalboolean | undefined <optional>
Whether the projection is valid for the whole globe. Default is
false. -
olx.ProjectionOptions{Object} experimental
-
Object literal with config options for the projection.
Properties:
Name Type Argument Description codestring The SRS identifier code, e.g.
EPSG:4326.unitsol.proj.Units | string Units.
extentol.Extent | undefined <optional>
The validity extent for the SRS.
axisOrientationstring | undefined <optional>
The axis orientation as specified in Proj4. The default is
enu.globalboolean | undefined <optional>
Whether the projection is valid for the whole globe. Default is
false. -
olx.View2DOptions{Object} experimental
-
Object literal with config options for the view.
Properties:
Name Type Argument Description centerol.Coordinate | undefined <optional>
The initial center for the view. The coordinate system for the center is specified with the
projectionoption. Default isundefined, and layer sources will not be fetched if this is not set.constrainRotationboolean | number | undefined <optional>
Rotation constraint.
falsemeans no constraint.truemeans no constraint, but snap to zero near zero. A number constraints the rotation to that number of values. For example,4will constrain the rotation to 0, 90, 180, and 270 degrees. The default istrue.enableRotationboolean | undefined <optional>
Enable rotation. Default is
true.extentol.Extent | undefined <optional>
The extent that constrains the center, in other words, center cannot be set outside this extent. Default is
undefined.maxResolutionnumber | undefined <optional>
The maximum resolution used to determine the resolution constraint. It is used together with
minResolution(ormaxZoom) andzoomFactor. 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 to40075016.68557849 / 256 = 156543.03392804097.minResolutionnumber | undefined <optional>
The minimum resolution used to determine the resolution constraint. It is used together with
maxResolution(orminZoom) andzoomFactor. If unspecified it is calculated assuming 29 zoom levels (with a factor of 2). If the projection is Spherical Mercator (the default) thenminResolutiondefaults to40075016.68557849 / 256 / Math.pow(2, 28) = 0.0005831682455839253.maxZoomnumber | undefined <optional>
The maximum zoom level used to determine the resolution constraint. It is used together with
minZoom(ormaxResolution) andzoomFactor. Default is28. Note that ifminResolutionis also provided, it is given precedence overmaxZoom.minZoomnumber | undefined <optional>
The minimum zoom level used to determine the resolution constraint. It is used together with
maxZoom(orminResolution) andzoomFactor. Default is0. Note that ifmaxResolutionis also provided, it is given precedence overminZoom.projectionol.proj.ProjectionLike The projection. Default is
EPSG:3857(Spherical Mercator).resolutionnumber | undefined <optional>
The initial resolution for the view. The units are
projectionunits per pixel (e.g. meters per pixel). An alternative to setting this is to setzoom. Default isundefined, and layer sources will not be fetched if neither this norzoomare defined.resolutionsArray.<number> | undefined <optional>
Resolutions to determine the resolution constraint. If set the
maxResolution,minResolution,minZoom,maxZoom, andzoomFactoroptions are ignored.rotationnumber | undefined <optional>
The initial rotation for the view in radians (positive rotation clockwise). Default is
0.zoomnumber | undefined <optional>
Only used if
resolutionis not defined. Zoom level used to calculate the initial resolution for the view. The initial resolution is determined using theol.View2D#constrainResolutionmethod.zoomFactornumber | undefined <optional>
The zoom factor used to determine the resolution constraint. Default is
2. -
olx.View2DState{Object} experimental
-
Properties:
Name Type Description centerol.Coordinate resolutionnumber rotationnumber
OpenLayers 3