olx. olx.source

Source:
  • olx.jsdoc, line 33

TypeDefs

BingMapsOptions

Stability: experimental
Properties:
Name Type Description
culture string | undefined

Culture code. Default is en-us.

key string

Bing Maps API key. Get yours at http://bingmapsportal.com/.

imagerySet string

Type of imagery.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

Source:
  • olx.js, line 2429

FormatVectorOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

extent ol.Extent | undefined

Extent.

format ol.format.Feature

Format.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

Source:
  • olx.js, line 2468

GeoJSONOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

defaultProjection ol.proj.ProjectionLike

Default projection.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

object GeoJSONObject | undefined

Object.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

text string | undefined

Text.

url string | undefined

URL.

urls Array.<string> | undefined

URLs.

Source:
  • olx.js, line 2518

GPXOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

doc Document | undefined

Document.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

node Node | undefined

Node.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

text string | undefined

Text.

url string | undefined

URL.

urls Array.<string> | undefined

URLs.

Source:
  • olx.js, line 2597

IGCOptions

Stability: experimental
Properties:
Name Type Description
altitudeMode ol.format.IGCZ | undefined

Altitude mode. Possible values are barometric, gps, and none. Default is none.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

text string | undefined

Text.

url string | undefined

URL.

urls Array.<string> | undefined

URLs.

Source:
  • olx.js, line 2929

ImageCanvasOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

canvasFunction ol.CanvasFunctionType

Canvas function. The function returning the canvas element 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. If the value returned by the function is later changed then dispatchChangeEvent should be called on the source for the source to invalidate the current cached image.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

ratio number | undefined

Ratio. 1 means canvases are the size of the map viewport, 2 means twice the size of the map viewport, and so on. Default is 1.5.

resolutions Array.<number> | undefined

Resolutions. If specified, new canvases will be created for these resolutions only.

state ol.source.State | string | undefined

Source state.

Source:
  • olx.js, line 3348

ImageStaticOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin null | string | undefined

crossOrigin setting for image requests.

extent ol.Extent | undefined

Extent.

imageExtent ol.Extent | undefined

Extent of the image.

imageSize ol.Size | undefined

Size of the image.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

url string

Url.

Source:
  • olx.js, line 3653

ImageVectorOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

ratio number | undefined

Ratio. 1 means canvases are the size of the map viewport, 2 means twice the size of the map viewport, and so on. Default is 1.5.

resolutions Array.<number> | undefined

Resolutions. If specified, new canvases will be created for these resolutions only.

source ol.source.Vector

The vector source from which the vector features drawn in canvas elements are read.

style ol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction | undefined

Style to use when rendering features to the canvas.

Source:
  • olx.js, line 3427

ImageWMSOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin null | string | undefined

crossOrigin setting for image requests.

extent ol.Extent | undefined

Extent.

hidpi boolean | undefined

Use the ol.Map#pixelRatio value when requesting the image from the remote server. Default is true.

serverType ol.source.wms.ServerType | string | undefined

The type of the remote WMS server: mapserver, geoserver or qgis. Only needed if hidpi is true. Default is undefined.

logo string | undefined

Logo.

params Object.<string, *>

WMS request parameters. At least a LAYERS param is required. STYLES is ` by default.VERSIONis1.3.0by default.WIDTH,HEIGHT,BBOXandCRS(SRS` for WMS version < 1.3.0) will be set dynamically.

projection ol.proj.ProjectionLike

Projection.

ratio number | undefined

Ratio. 1 means image requests are the size of the map viewport, 2 means twice the size of the map viewport, and so on. Default is 1.5.

resolutions Array.<number> | undefined

Resolutions. If specified, requests will be made for these resolutions only.

url string | undefined

WMS service URL.

Source:
  • olx.js, line 3503

KMLOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

defaultStyle Array.<ol.style.Style> | undefined

Default style.

doc Document | undefined

Document.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

node Node | undefined

Node.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

text string | undefined

Text.

url string | undefined

URL.

urls Array.<string> | undefined

URLs.

Source:
  • olx.js, line 3070

MapGuideOptions

Stability: experimental
Properties:
Name Type Description
url string | undefined

The mapagent url.

displayDpi number | undefined

The display resolution. Default is 96.

metersPerUnit number | undefined

The meters-per-unit value. Default is 1.

extent ol.Extent | undefined

Extent.

hidpi boolean | undefined

Use the ol.Map#pixelRatio value when requesting the image from the remote server. Default is true.

useOverlay boolean | undefined

If true, will use GETDYNAMICMAPOVERLAYIMAGE.

projection ol.proj.ProjectionLike

Projection.

ratio number | undefined

Ratio. 1 means image requests are the size of the map viewport, 2 means twice the size of the map viewport, and so on. Default is 1.

resolutions Array.<number> | undefined

Resolutions. If specified, requests will be made for these resolutions only.

params Object | undefined

Additional parameters.

Source:
  • olx.js, line 2982

MapQuestOptions

Stability: experimental
Properties:
Name Type Description
layer string

Layer. Possible values are osm, sat, and hyb.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

Source:
  • olx.js, line 3149

OSMOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin null | string | undefined

crossOrigin setting for image requests. Default is anonymous.

maxZoom number | undefined

Max zoom.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

url string | undefined

URL template. Must include {x}, {y} or {-y}, and {z} placeholders. Default is //{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png.

Source:
  • olx.js, line 3204

OSMXMLOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

defaultStyle Array.<ol.style.Style> | undefined

Default style.

doc Document | undefined

Document.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

node Node | undefined

Node.

projection ol.proj.ProjectionLike

Projection.

reprojectTo ol.proj.ProjectionLike

Re-project to.

text string | undefined

Text.

url string | undefined

URL.

urls Array.<string> | undefined

URLs.

Source:
  • olx.js, line 3257

ServerVectorOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

extent ol.Extent | undefined

Extent.

format ol.format.Feature

Format.

loader function

Loading function.

strategy function

Loading strategy. Default is ol.loadingstrategy.bbox.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

Source:
  • olx.js, line 3722

StamenOptions

Stability: experimental
Properties:
Name Type Description
layer string

Layer.

minZoom number | undefined

Minimum zoom.

maxZoom number | undefined

Maximum zoom.

opaque boolean | undefined

Whether the layer is opaque.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

url string | undefined

URL template. Must include {x}, {y} or {-y}, and {z} placeholders.

Source:
  • olx.js, line 3597

StaticVectorOptions

Stability: experimental
Properties:
Name Type Description
arrayBuffer ArrayBuffer | undefined

Array buffer.

attributions Array.<ol.Attribution> | undefined

Attributions.

doc Document | undefined

Document.

extent ol.Extent | undefined

Extent.

format ol.format.Feature

Format.

logo string | undefined

Logo.

node Node | undefined

Node.

object Object | undefined

Object.

projection ol.proj.ProjectionLike

Projection.

text string | undefined

Text.

url string | undefined

URL.

urls Array.<string> | undefined

URLs.

Source:
  • olx.js, line 4003

TileDebugOptions

Stability: experimental
Properties:
Name Type Description
extent ol.Extent | undefined

Extent.

projection ol.proj.ProjectionLike

Projection.

tileGrid ol.tilegrid.TileGrid | undefined

Tile grid.

Source:
  • olx.js, line 3172

TileImageOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin null | string | undefined

crossOrigin setting for image requests. Default is null.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

opaque boolean | undefined

Whether the layer is opaque.

pixelRatios Array.<number> | undefined

Pixel ratios supported by the server.

projection ol.proj.ProjectionLike

Projection.

tileClass function | undefined

tile class

tileGrid ol.tilegrid.TileGrid | undefined

Tile grid.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

tileUrlFunction ol.TileUrlFunctionType | undefined

Optional function to get tile URL given a tile coordinate and the projection.

Source:
  • olx.js, line 2680

TileJSONOptions

Stability: experimental
Properties:
Name Type Description
crossOrigin null | string | undefined

crossOrigin setting for image requests.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

url string

URL to the TileJSON file.

Source:
  • olx.js, line 3780

TileVectorOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

defaultProjection ol.proj.ProjectionLike

Default projection.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

object GeoJSONObject | undefined

Object.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

tileGrid ol.tilegrid.TileGrid

Tile grid.

tileUrlFunction ol.TileUrlFunctionType | undefined

Optional function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.

url string | undefined

URL template. Must include {x}, {y} or {-y}, and {z} placeholders.

urls Array.<string> | undefined

An array of URL templates.

Source:
  • olx.js, line 2775

TileWMSOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

params Object.<string, *>

WMS request parameters. At least a LAYERS param is required. STYLES is ` by default.VERSIONis1.3.0by default.WIDTH,HEIGHT,BBOXandCRS(SRS` for WMS version < 1.3.0) will be set dynamically.

crossOrigin null | string | undefined

crossOrigin setting for image requests.

extent ol.Extent | undefined

Extent.

gutter number | undefined

The size in pixels of the gutter around image tiles to ignore. By setting this property to a non-zero value, images will be requested that are wider and taller than the tile size by a value of 2 x gutter. Defaults to zero. Using a non-zero value allows artifacts of rendering at tile edges to be ignored. If you control the WMS service it is recommended to address "artifacts at tile edges" issues by properly configuring the WMS service. For example, MapServer has a tile_map_edge_buffer configuration parameter for this. See http://mapserver.org/output/tile_mode.html.

hidpi boolean | undefined

Use the ol.Map#pixelRatio value when requesting the image from the remote server. Default is true.

logo string | undefined

Logo.

tileGrid ol.tilegrid.TileGrid | undefined

Tile grid.

maxZoom number | undefined

Maximum zoom.

projection ol.proj.ProjectionLike

Projection.

serverType ol.source.wms.ServerType | string | undefined

The type of the remote WMS server: mapserver, geoserver or qgis. Only needed if hidpi is true. Default is undefined.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

url string | undefined

WMS service URL.

urls Array.<string> | undefined

WMS service urls. Use this instead of url when the WMS supports multiple urls for GetMap requests.

Source:
  • olx.js, line 3821

TopoJSONOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

defaultProjection ol.proj.ProjectionLike

Default projection.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

object GeoJSONObject | undefined

Object.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

text string | undefined

Text.

url string | undefined

URL.

Source:
  • olx.js, line 2861

VectorOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

extent ol.Extent | undefined

Extent.

features Array.<ol.Feature> | undefined

Features.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

state ol.source.State | string | undefined

State.

Source:
  • olx.js, line 3943

WMTSOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin string | null | undefined

crossOrigin setting for image requests.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

tileGrid ol.tilegrid.WMTS

Tile grid.

projection ol.proj.ProjectionLike

Projection.

requestEncoding ol.source.WMTSRequestEncoding | undefined

Request encoding.

layer string

Layer.

style string

Style.

version string | undefined

WMTS version. Default to 1.0.0.

format string | undefined

Format.

matrixSet string

Matrix set.

dimensions Object | undefined

Dimensions.

url string | undefined

URL.

maxZoom number | undefined

Maximum zoom.

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

urls Array.<string> | undefined

Urls.

Source:
  • olx.js, line 4110

XYZOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin null | string | undefined

Cross origin setting for image requests.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection. Default is EPSG:3857.

maxZoom number | undefined

Optional max zoom level. Default is 18.

minZoom number | undefined

Unsupported (TODO: remove this).

tileLoadFunction ol.TileLoadFunctionType | undefined

Optional function to load a tile given a URL.

tileUrlFunction ol.TileUrlFunctionType | undefined

Optional function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.

url string | undefined

URL template. Must include {x}, {y} or {-y}, and {z} placeholders.

urls Array.<string> | undefined

An array of URL templates.

wrapX boolean | undefined

Whether to wrap the world horizontally. Default is true.

Source:
  • olx.js, line 4247

ZoomifyOptions

Stability: experimental
Properties:
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

crossOrigin null | string | undefined

Cross origin setting for image requests.

logo string | undefined

Logo.

url string

Prefix of URL template.

tierSizeCalculation string | undefined

Tier size calculation method: default or truncated.

size ol.Size

Size of the image.

Source:
  • olx.js, line 4344