Type Definitions
-
olx.source.BingMapsOptions{Object} experimental
-
Properties:
Name Type Argument Description culturestring | undefined <optional>
Culture code. Default is
en-us.keystring Bing Maps API key. Get yours at http://bingmapsportal.com/.
imagerySetstring Type of imagery.
tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
-
olx.source.ClusterOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
distancenumber | undefined <optional>
Minimum distance in pixels between clusters. Default is
20.extentol.Extent | undefined <optional>
Extent.
formatol.format.Feature | undefined <optional>
Format.
logostring | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection.
sourceol.source.Vector Source.
-
olx.source.FormatVectorOptions{Object} experimental
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
formatol.format.Feature Format.
logostring | olx.LogoOptions | undefined Logo.
projectionol.proj.ProjectionLike Projection.
-
olx.source.GeoJSONOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
defaultProjectionol.proj.ProjectionLike Default projection.
logostring | olx.LogoOptions | undefined <optional>
Logo.
objectGeoJSONObject | undefined <optional>
Object.
projectionol.proj.ProjectionLike Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
urlsArray.<string> | undefined <optional>
URLs.
-
olx.source.GPXOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
docDocument | undefined <optional>
Document.
logostring | olx.LogoOptions | undefined <optional>
Logo.
nodeNode | undefined <optional>
Node.
projectionol.proj.ProjectionLike Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
urlsArray.<string> | undefined <optional>
URLs.
-
olx.source.IGCOptions{Object} experimental
-
Properties:
Name Type Argument Description altitudeModeol.format.IGCZ | undefined <optional>
Altitude mode. Possible values are
barometric,gps, andnone. Default isnone.projectionol.proj.ProjectionLike Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
urlsArray.<string> | undefined <optional>
URLs.
-
olx.source.ImageCanvasOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
canvasFunctionol.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 thendispatchChangeEventshould be called on the source for the source to invalidate the current cached image.logostring | olx.LogoOptions | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection.
rationumber | undefined <optional>
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.resolutionsArray.<number> | undefined <optional>
Resolutions. If specified, new canvases will be created for these resolutions only.
stateol.source.State | string | undefined <optional>
Source state.
-
olx.source.ImageMapGuideOptions{Object} experimental
-
Properties:
Name Type Argument Description urlstring | undefined <optional>
The mapagent url.
displayDpinumber | undefined <optional>
The display resolution. Default is
96.metersPerUnitnumber | undefined <optional>
The meters-per-unit value. Default is
1.hidpiboolean | undefined <optional>
Use the
ol.Map#pixelRatiovalue when requesting the image from the remote server. Default istrue.useOverlayboolean | undefined <optional>
If
true, will useGETDYNAMICMAPOVERLAYIMAGE.projectionol.proj.ProjectionLike Projection.
rationumber | undefined <optional>
Ratio.
1means image requests are the size of the map viewport,2means twice the size of the map viewport, and so on. Default is1.resolutionsArray.<number> | undefined <optional>
Resolutions. If specified, requests will be made for these resolutions only.
paramsObject | undefined <optional>
Additional parameters.
-
olx.source.ImageStaticOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginnull | string | undefined <optional>
crossOrigin setting for image requests.
imageExtentol.Extent | undefined <optional>
Extent of the image.
imageSizeol.Size | undefined <optional>
Size of the image.
logostring | olx.LogoOptions | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection.
urlstring Url.
-
olx.source.ImageVectorOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
logostring | olx.LogoOptions | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection.
rationumber | undefined <optional>
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.resolutionsArray.<number> | undefined <optional>
Resolutions. If specified, new canvases will be created for these resolutions only.
sourceol.source.Vector The vector source from which the vector features drawn in canvas elements are read.
styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined <optional>
Style to use when rendering features to the canvas.
-
olx.source.ImageWMSOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginnull | string | undefined <optional>
crossOrigin setting for image requests.
hidpiboolean | undefined <optional>
Use the
ol.Map#pixelRatiovalue when requesting the image from the remote server. Default istrue.serverTypeol.source.wms.ServerType | string | undefined <optional>
The type of the remote WMS server:
mapserver,geoserverorqgis. Only needed ifhidpiistrue. Default isundefined.logostring | olx.LogoOptions | undefined <optional>
Logo.
paramsObject.<string, *> WMS request parameters. At least a
LAYERSparam is required.STYLESis''by default.VERSIONis1.3.0by default.WIDTH,HEIGHT,BBOXandCRS(SRSfor WMS version < 1.3.0) will be set dynamically.projectionol.proj.ProjectionLike Projection.
rationumber | undefined <optional>
Ratio.
1means image requests are the size of the map viewport,2means twice the size of the map viewport, and so on. Default is1.5.resolutionsArray.<number> | undefined <optional>
Resolutions. If specified, requests will be made for these resolutions only.
urlstring | undefined <optional>
WMS service URL.
-
olx.source.KMLOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
defaultStyleArray.<ol.style.Style> | undefined <optional>
Default style.
docDocument | undefined <optional>
Document.
extractStylesboolean | undefined <optional>
Extract styles from the KML document. Default is
true.logostring | olx.LogoOptions | undefined <optional>
Logo.
nodeNode | undefined <optional>
Node.
projectionol.proj.ProjectionLike Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
urlsArray.<string> | undefined <optional>
URLs.
-
olx.source.MapQuestOptions{Object} experimental
-
Properties:
Name Type Argument Description layerstring Layer. Possible values are
osm,sat, andhyb.tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
-
olx.source.OSMOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginnull | string | undefined <optional>
crossOrigin setting for image requests. Default is
anonymous.maxZoomnumber | undefined <optional>
Max zoom. Default is
19.tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
urlstring | undefined <optional>
URL template. Must include
{x},{y}or{-y}, and{z}placeholders. Default is//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png. -
olx.source.OSMXMLOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
docDocument | undefined <optional>
Document.
logostring | olx.LogoOptions | undefined <optional>
Logo.
nodeNode | undefined <optional>
Node.
projectionol.proj.ProjectionLike Projection.
reprojectTool.proj.ProjectionLike Re-project to.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
urlsArray.<string> | undefined <optional>
URLs.
-
olx.source.ServerVectorOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
formatol.format.Feature Format.
loaderfunction Loading function.
strategyfunction Loading strategy. An
ol.loadingstrategyor a custom function. Default isol.loadingstrategy.bbox.logostring | olx.LogoOptions | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection.
-
olx.source.StamenOptions{Object} experimental
-
Properties:
Name Type Argument Description layerstring Layer.
minZoomnumber | undefined <optional>
Minimum zoom.
maxZoomnumber | undefined <optional>
Maximum zoom.
opaqueboolean | undefined <optional>
Whether the layer is opaque.
tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
urlstring | undefined <optional>
URL template. Must include
{x},{y}or{-y}, and{z}placeholders. -
olx.source.StaticVectorOptions{Object} experimental
-
Properties:
Name Type Argument Description arrayBufferArrayBuffer | undefined <optional>
Array buffer.
attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
docDocument | undefined <optional>
Document.
formatol.format.Feature Format.
logostring | olx.LogoOptions | undefined <optional>
Logo.
nodeNode | undefined <optional>
Node.
objectObject | undefined <optional>
Object.
projectionol.proj.ProjectionLike Projection.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
urlsArray.<string> | undefined <optional>
URLs.
-
olx.source.TileDebugOptions{Object} experimental
-
Properties:
Name Type Argument Description projectionol.proj.ProjectionLike Projection.
tileGridol.tilegrid.TileGrid | undefined <optional>
Tile grid.
-
olx.source.TileImageOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginnull | string | undefined <optional>
crossOrigin setting for image requests. Default is
null.logostring | olx.LogoOptions | undefined <optional>
Logo.
opaqueboolean | undefined <optional>
Whether the layer is opaque.
projectionol.proj.ProjectionLike Projection.
stateol.source.State | string | undefined <optional>
Source state.
tileClassfunction | undefined <optional>
tile class
tileGridol.tilegrid.TileGrid | undefined <optional>
Tile grid.
tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
tilePixelRationumber | undefined <optional>
The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then
tilePixelRatioshould be set to2. Default is1.tileUrlFunctionol.TileUrlFunctionType | undefined <optional>
Optional function to get tile URL given a tile coordinate and the projection.
-
olx.source.TileJSONOptions{Object} experimental
-
Properties:
Name Type Argument Description crossOriginnull | string | undefined <optional>
crossOrigin setting for image requests.
tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
urlstring URL to the TileJSON file.
-
olx.source.TileVectorOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
defaultProjectionol.proj.ProjectionLike Default projection.
formatol.format.Feature Format.
logostring | olx.LogoOptions | undefined <optional>
Logo.
objectGeoJSONObject | undefined <optional>
Object.
projectionol.proj.ProjectionLike Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.
tileGridol.tilegrid.TileGrid Tile grid.
tileUrlFunctionol.TileUrlFunctionType | undefined <optional>
Optional function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.
urlstring | undefined <optional>
URL template. Must include
{x},{y}or{-y}, and{z}placeholders.urlsArray.<string> | undefined <optional>
An array of URL templates.
-
olx.source.TileWMSOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
paramsObject.<string, *> WMS request parameters. At least a
LAYERSparam is required.STYLESis''by default.VERSIONis1.3.0by default.WIDTH,HEIGHT,BBOXandCRS(SRSfor WMS version < 1.3.0) will be set dynamically.crossOriginnull | string | undefined <optional>
crossOrigin setting for image requests.
gutternumber | undefined <optional>
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 atile_map_edge_bufferconfiguration parameter for this. See http://mapserver.org/output/tile_mode.html.hidpiboolean | undefined <optional>
Use the
ol.Map#pixelRatiovalue when requesting the image from the remote server. Default istrue.logostring | olx.LogoOptions | undefined <optional>
Logo.
tileGridol.tilegrid.TileGrid | undefined <optional>
Tile grid. Base this on the resolutions, tilesize and extent supported by the server. If this is not defined, a default grid will be used: if there is a projection extent, the grid will be based on that; if not, a grid based on a global extent with origin at 0,0 will be used.
maxZoomnumber | undefined <optional>
Maximum zoom.
projectionol.proj.ProjectionLike Projection.
serverTypeol.source.wms.ServerType | string | undefined <optional>
The type of the remote WMS server. Currently only used when
hidpiistrue. Default isundefined.tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
urlstring | undefined <optional>
WMS service URL.
urlsArray.<string> | undefined <optional>
WMS service urls. Use this instead of
urlwhen the WMS supports multiple urls for GetMap requests. -
olx.source.TopoJSONOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
defaultProjectionol.proj.ProjectionLike Default projection.
logostring | olx.LogoOptions | undefined <optional>
Logo.
objectGeoJSONObject | undefined <optional>
Object.
projectionol.proj.ProjectionLike Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.
textstring | undefined <optional>
Text.
urlstring | undefined <optional>
URL.
-
olx.source.VectorOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
featuresArray.<ol.Feature> | undefined <optional>
Features.
logostring | olx.LogoOptions | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection.
stateol.source.State | string | undefined <optional>
State.
-
olx.source.WMTSOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginstring | null | undefined <optional>
crossOrigin setting for image requests.
logostring | olx.LogoOptions | undefined <optional>
Logo.
tileGridol.tilegrid.WMTS Tile grid.
projectionol.proj.ProjectionLike Projection.
requestEncodingol.source.WMTSRequestEncoding | undefined <optional>
Request encoding.
layerstring Layer.
stylestring Style.
tilePixelRationumber | undefined <optional>
The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then
tilePixelRatioshould be set to2. Default is1.versionstring | undefined <optional>
WMTS version. Default is
1.0.0.formatstring | undefined <optional>
Image format. Default is
image/jpeg.matrixSetstring Matrix set.
dimensionsObject | undefined <optional>
Dimensions.
urlstring | undefined <optional>
URL.
maxZoomnumber | undefined <optional>
Maximum zoom.
tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
urlsArray.<string> | undefined <optional>
Urls.
-
olx.source.XYZOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginnull | string | undefined <optional>
Cross origin setting for image requests.
logostring | olx.LogoOptions | undefined <optional>
Logo.
projectionol.proj.ProjectionLike Projection. Default is
EPSG:3857.maxZoomnumber | undefined <optional>
Optional max zoom level. Default is
18.minZoomnumber | undefined <optional>
Unsupported (TODO: remove this).
tileLoadFunctionol.TileLoadFunctionType | undefined <optional>
Optional function to load a tile given a URL.
tilePixelRationumber | undefined <optional>
The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then
tilePixelRatioshould be set to2. Default is1.tileUrlFunctionol.TileUrlFunctionType | undefined <optional>
Optional function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.
urlstring | undefined <optional>
URL template. Must include
{x},{y}or{-y}, and{z}placeholders.urlsArray.<string> | undefined <optional>
An array of URL templates.
wrapXboolean | undefined <optional>
Whether to wrap the world horizontally. Default is
true. -
olx.source.ZoomifyOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionsArray.<ol.Attribution> | undefined <optional>
Attributions.
crossOriginnull | string | undefined <optional>
Cross origin setting for image requests.
logostring | olx.LogoOptions | undefined <optional>
Logo.
urlstring Prefix of URL template.
tierSizeCalculationstring | undefined <optional>
Tier size calculation method:
defaultortruncated.sizeol.Size Size of the image.