Namespaces
Type Definitions
-
experimental olx.AttributionOptionsObject
-
Properties:
Name Type Description htmlstring HTML markup for this attribution.
tileRangesObject.<string, Array.<ol.TileRange>> | undefined Tile ranges (FOR INTERNAL USE ONLY).
-
experimental olx.DeviceOptionsObject
-
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. -
experimental olx.DeviceOrientationOptionsObject
-
Properties:
Name Type Description trackingboolean | undefined Start tracking. Default is
false. -
experimental olx.FeatureOverlayOptionsObject
-
Properties:
Name Type Description featuresArray.<ol.Feature> | ol.Collection | undefined Features.
mapol.Map | undefined Map.
styleol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction | undefined Feature style.
-
experimental olx.GeolocationOptionsObject
-
Properties:
Name Type Description trackingboolean | undefined Start Tracking. Default is
false.trackingOptionsGeolocationPositionOptions | undefined Tracking options. See http://www.w3.org/TR/geolocation-API/#position_options_interface.
projectionol.proj.ProjectionLike Projection.
-
experimental olx.MapOptionsObject
-
Object literal with config options for the map.
Properties:
Name Type Description controlsol.Collection | Array.<ol.control.Control> | undefined Controls initially added to the map.
deviceOptionsolx.DeviceOptions | undefined Device options for the map.
pixelRationumber | undefined The ratio between physical pixels and device-independent pixels (dips) on the device. If
undefinedthen it gets set by usingwindow.devicePixelRatio.interactionsol.Collection | Array.<ol.interaction.Interaction> | undefined Interactions that are initially added to the map.
keyboardEventTargetElement | Document | string | undefined 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 Layers.
ol3Logoboolean | undefined Show ol3 logo. Default is
true.overlaysol.Collection | Array.<ol.Overlay> | undefined Overlays initially added to the map.
rendererol.RendererHint | Array.<(ol.RendererHint|string)> | string | undefined Renderer.
targetElement | string | undefined The container for the map.
viewol.IView | undefined The map's view.
-
experimental olx.OverlayOptionsObject
-
Object literal with config options for the overlay.
Properties:
Name Type Description elementElement | undefined The overlay element.
positionol.Coordinate | undefined The overlay position in map projection.
positioningol.OverlayPositioning | string | undefined Positioning.
stopEventboolean | undefined 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 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 Horizontal offset in pixels. A positive will shift the overlay right. Default is
0.offsetYnumber | undefined Vertical offset in pixels. A positive will shift the overlay down. Default is
0. -
experimental olx.Proj4jsProjectionOptionsObject
-
Object literal with config options for the Proj4js projection.
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. -
experimental olx.ProjectionOptionsObject
-
Object literal with config options for the projection.
Properties:
Name Type Description codestring The SRS identifier code, e.g.
EPSG:4326.unitsol.proj.Units | string 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. -
experimental olx.View2DOptionsObject
-
Object literal with config options for the view.
Properties:
Name Type Description centerol.Coordinate | undefined 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 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 Enable rotation. Default is
true.extentol.Extent | undefined The extent that constrains the center, in other words, center cannot be set outside this extent. Default is
undefined.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 to40075016.68557849 / 256 = 156543.03392804097.maxZoomnumber | undefined The maximum zoom level used to determine the resolution constraint. It is used together with
maxResolutionandzoomFactor. Default is28.projectionol.proj.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). 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 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). Default is
0.zoomnumber | undefined 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 The zoom factor used to determine the resolution constraint. Used together with
maxResolutionandmaxZoom. Default is2.
OpenLayers 3