Namespaces
Type Definitions
-
olx.AttributionOptions{Object} experimental
-
Properties:
Name Type Description htmlstring HTML markup for this attribution.
-
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.<ol.Feature> | undefined <optional>
Features.
mapol.Map | undefined <optional>
Map.
styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined <optional>
Feature style.
-
olx.FrameState{Object} experimental
-
Properties:
Name Type Description pixelRationumber timenumber viewStateolx.ViewState -
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 The projection the position is reported in.
-
olx.GraticuleOptions{Object} experimental
-
Properties:
Name Type Argument Description mapol.Map | undefined <optional>
Reference to an
ol.Mapobject.maxLinesnumber | undefined <optional>
The maximum number of meridians and parallels from the center of the map. The default value is 100, which means that at most 200 meridians and 200 parallels will be displayed. The default value is appropriate for conformal projections like Spherical Mercator. If you increase the value more lines will be drawn and the drawing performance will decrease.
strokeStyleol.style.Stroke | undefined <optional>
The stroke style to use for drawing the graticule. If not provided, the lines will be drawn with
rgba(0,0,0,0.2), a not fully opaque black.targetSizenumber | undefined <optional>
The target size of the graticule cells, in pixels. Default value is 100 pixels.
-
olx.LogoOptions{Object} experimental
-
Object literal with config options for the map logo.
Properties:
Name Type Description hrefstring Link url for the logo. Will be followed when the logo is clicked.
srcstring Image src for the logo
-
olx.MapOptions{Object} experimental
-
Object literal with config options for the map.
Properties:
Name Type Argument Description controlsol.Collection.<ol.control.Control> | Array.<ol.control.Control> | undefined <optional>
Controls initially added to the map. If not specified,
ol.control.defaults()is used.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 usingwindow.devicePixelRatio.interactionsol.Collection.<ol.interaction.Interaction> | Array.<ol.interaction.Interaction> | undefined <optional>
Interactions that are initially added to the map. If not specified,
ol.interaction.defaults()is used.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.<ol.layer.Base> | undefined <optional>
Layers. If this is not defined, a map with no layers will be rendered.
logoboolean | string | olx.LogoOptions | undefined <optional>
The map logo. A logo to be displayed on the map at all times. If a string is provided, it will be set as the image source of the logo. If an object is provided, the
srcproperty should be the URL for an image and thehrefproperty should be a URL for creating a link. To disable the map logo, set the option tofalse. By default, the OpenLayers 3 logo is shown.overlaysol.Collection.<ol.Overlay> | Array.<ol.Overlay> | undefined <optional>
Overlays initially added to the map. By default, no overlays are added.
rendererol.RendererType | Array.<(ol.RendererType|string)> | string | undefined <optional>
Renderer. By default, Canvas, DOM and WebGL renderers are tested for support in that order, and the first supported used. Specify a
ol.RendererTypehere to use a specific renderer. Note that at present only the Canvas renderer supports vector data.targetElement | string | undefined <optional>
The container for the map, either the element itself or the
idof the element. If not specified at construction time,ol.Map#setTargetmust be called for the map to be rendered.viewol.View | undefined <optional>
The map's view. No layer sources will be fetched unless this is specified at construction time or through
ol.Map#setView. -
olx.OverlayOptions{Object}
-
Object literal with config options for the overlay.
Properties:
Name Type Argument Description elementElement | undefined <optional>
The overlay element.
offsetArray.<number> | undefined <optional>
Offsets in pixels used when positioning the overlay. The fist element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down. Default is
[0, 0].positionol.Coordinate | undefined <optional>
The overlay position in map projection.
positioningol.OverlayPositioning | string | undefined <optional>
Defines how the overlay is actually positioned with respect to its
positionproperty. Possible values are'bottom-left','bottom-center','bottom-right','center-left','center-center','center-right','top-left','top-center', and'top-right'. Default is'top-left'.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 (CSS class nameol-overlaycontainer-stopevent); iffalseit is placed in the container with CSS class nameol-overlaycontainer.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. -
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.worldExtentol.Extent | undefined <optional>
The world extent for the SRS.
-
olx.ViewOptions{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 constrains 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.View#constrainResolutionmethod.zoomFactornumber | undefined <optional>
The zoom factor used to determine the resolution constraint. Default is
2. -
olx.ViewState{Object} experimental
-
Properties:
Name Type Description centerol.Coordinate resolutionnumber rotationnumber