Type Definitions
-
experimental olx.source.BingMapsOptionsObject
-
Properties:
Name Type Description culturestring | undefined 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 function to load a tile given a URL.
-
experimental olx.source.FormatVectorOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
extentol.Extent | undefined Extent.
formatol.format.Feature Format.
logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection.
-
experimental olx.source.GeoJSONOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
defaultProjectionol.proj.ProjectionLike Default projection.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
objectGeoJSONObject | undefined 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 Text.
urlstring | undefined URL.
urlsArray.<string> | undefined URLs.
-
experimental olx.source.GPXOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
docDocument | undefined Document.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
nodeNode | undefined 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 Text.
urlstring | undefined URL.
urlsArray.<string> | undefined URLs.
-
experimental olx.source.IGCOptionsObject
-
Properties:
Name Type Description altitudeModeol.format.IGCZ | undefined 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 Text.
urlstring | undefined URL.
urlsArray.<string> | undefined URLs.
-
experimental olx.source.ImageCanvasOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined 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.extentol.Extent | undefined Extent.
logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection.
rationumber | 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.resolutionsArray.<number> | undefined Resolutions. If specified, new canvases will be created for these resolutions only.
stateol.source.State | string | undefined Source state.
-
experimental olx.source.ImageStaticOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginnull | string | undefined crossOrigin setting for image requests.
extentol.Extent | undefined Extent.
imageExtentol.Extent | undefined Extent of the image.
imageSizeol.Size | undefined Size of the image.
logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection.
urlstring Url.
-
experimental olx.source.ImageVectorOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection.
rationumber | 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.resolutionsArray.<number> | undefined 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.feature.StyleFunction | undefined Style to use when rendering features to the canvas.
-
experimental olx.source.ImageWMSOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginnull | string | undefined crossOrigin setting for image requests.
extentol.Extent | undefined Extent.
hidpiboolean | undefined Use the
ol.Map#pixelRatiovalue when requesting the image from the remote server. Default istrue.serverTypeol.source.wms.ServerType | string | undefined The type of the remote WMS server:
mapserver,geoserverorqgis. Only needed ifhidpiistrue. Default isundefined.logostring | undefined 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 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 Resolutions. If specified, requests will be made for these resolutions only.
urlstring | undefined WMS service URL.
-
experimental olx.source.KMLOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
defaultStyleArray.<ol.style.Style> | undefined Default style.
docDocument | undefined Document.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
nodeNode | undefined 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 Text.
urlstring | undefined URL.
urlsArray.<string> | undefined URLs.
-
experimental olx.source.MapGuideOptionsObject
-
Properties:
Name Type Description urlstring | undefined The mapagent url.
displayDpinumber | undefined The display resolution. Default is
96.metersPerUnitnumber | undefined The meters-per-unit value. Default is
1.extentol.Extent | undefined Extent.
hidpiboolean | undefined Use the
ol.Map#pixelRatiovalue when requesting the image from the remote server. Default istrue.useOverlayboolean | undefined If
true, will useGETDYNAMICMAPOVERLAYIMAGE.projectionol.proj.ProjectionLike Projection.
rationumber | undefined 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 Resolutions. If specified, requests will be made for these resolutions only.
paramsObject | undefined Additional parameters.
-
experimental olx.source.MapQuestOptionsObject
-
Properties:
Name Type Description layerstring Layer. Possible values are
osm,sat, andhyb.tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
-
experimental olx.source.OSMOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginnull | string | undefined crossOrigin setting for image requests. Default is
anonymous.maxZoomnumber | undefined Max zoom.
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders. Default is//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png. -
experimental olx.source.OSMXMLOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
defaultStyleArray.<ol.style.Style> | undefined Default style.
docDocument | undefined Document.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
nodeNode | undefined Node.
projectionol.proj.ProjectionLike Projection.
reprojectTool.proj.ProjectionLike Re-project to.
textstring | undefined Text.
urlstring | undefined URL.
urlsArray.<string> | undefined URLs.
-
experimental olx.source.ServerVectorOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
extentol.Extent | undefined Extent.
formatol.format.Feature Format.
loaderfunction Loading function.
strategyfunction Loading strategy. Default is
ol.loadingstrategy.bbox.logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection.
-
experimental olx.source.StamenOptionsObject
-
Properties:
Name Type Description layerstring Layer.
minZoomnumber | undefined Minimum zoom.
maxZoomnumber | undefined Maximum zoom.
opaqueboolean | undefined Whether the layer is opaque.
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders. -
experimental olx.source.StaticVectorOptionsObject
-
Properties:
Name Type Description arrayBufferArrayBuffer | undefined Array buffer.
attributionsArray.<ol.Attribution> | undefined Attributions.
docDocument | undefined Document.
extentol.Extent | undefined Extent.
formatol.format.Feature Format.
logostring | undefined Logo.
nodeNode | undefined Node.
objectObject | undefined Object.
projectionol.proj.ProjectionLike Projection.
textstring | undefined Text.
urlstring | undefined URL.
urlsArray.<string> | undefined URLs.
-
experimental olx.source.TileDebugOptionsObject
-
Properties:
Name Type Description extentol.Extent | undefined Extent.
projectionol.proj.ProjectionLike Projection.
tileGridol.tilegrid.TileGrid | undefined Tile grid.
-
experimental olx.source.TileImageOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginnull | string | undefined crossOrigin setting for image requests. Default is
null.extentol.Extent | undefined Extent.
logostring | undefined Logo.
opaqueboolean | undefined Whether the layer is opaque.
projectionol.proj.ProjectionLike Projection.
tileClassfunction | undefined tile class
tileGridol.tilegrid.TileGrid | undefined Tile grid.
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
tileUrlFunctionol.TileUrlFunctionType | undefined Optional function to get tile URL given a tile coordinate and the projection.
-
experimental olx.source.TileJSONOptionsObject
-
Properties:
Name Type Description crossOriginnull | string | undefined crossOrigin setting for image requests.
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
urlstring URL to the TileJSON file.
-
experimental olx.source.TileVectorOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
defaultProjectionol.proj.ProjectionLike Default projection.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
objectGeoJSONObject | undefined 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 function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.
urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders.urlsArray.<string> | undefined An array of URL templates.
-
experimental olx.source.TileWMSOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined 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 crossOrigin setting for image requests.
extentol.Extent | undefined Extent.
gutternumber | 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 atile_map_edge_bufferconfiguration parameter for this. See http://mapserver.org/output/tile_mode.html.hidpiboolean | undefined Use the
ol.Map#pixelRatiovalue when requesting the image from the remote server. Default istrue.logostring | undefined Logo.
tileGridol.tilegrid.TileGrid | undefined Tile grid.
maxZoomnumber | undefined Maximum zoom.
projectionol.proj.ProjectionLike Projection.
serverTypeol.source.wms.ServerType | string | undefined The type of the remote WMS server:
mapserver,geoserverorqgis. Only needed ifhidpiistrue. Default isundefined.tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
urlstring | undefined WMS service URL.
urlsArray.<string> | undefined WMS service urls. Use this instead of
urlwhen the WMS supports multiple urls for GetMap requests. -
experimental olx.source.TopoJSONOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
defaultProjectionol.proj.ProjectionLike Default projection.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
objectGeoJSONObject | undefined 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 Text.
urlstring | undefined URL.
-
experimental olx.source.VectorOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
extentol.Extent | undefined Extent.
featuresArray.<ol.Feature> | undefined Features.
logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection.
stateol.source.State | string | undefined State.
-
experimental olx.source.WMTSOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginstring | null | undefined crossOrigin setting for image requests.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
tileGridol.tilegrid.WMTS Tile grid.
projectionol.proj.ProjectionLike Projection.
requestEncodingol.source.WMTSRequestEncoding | undefined Request encoding.
layerstring Layer.
stylestring Style.
versionstring | undefined WMTS version. Default to
1.0.0.formatstring | undefined Format.
matrixSetstring Matrix set.
dimensionsObject | undefined Dimensions.
urlstring | undefined URL.
maxZoomnumber | undefined Maximum zoom.
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
urlsArray.<string> | undefined Urls.
-
experimental olx.source.XYZOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginnull | string | undefined Cross origin setting for image requests.
extentol.Extent | undefined Extent.
logostring | undefined Logo.
projectionol.proj.ProjectionLike Projection. Default is
EPSG:3857.maxZoomnumber | undefined Optional max zoom level. Default is
18.minZoomnumber | undefined Unsupported (TODO: remove this).
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL.
tileUrlFunctionol.TileUrlFunctionType | undefined Optional function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.
urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders.urlsArray.<string> | undefined An array of URL templates.
wrapXboolean | undefined Whether to wrap the world horizontally. Default is
true. -
experimental olx.source.ZoomifyOptionsObject
-
Properties:
Name Type Description attributionsArray.<ol.Attribution> | undefined Attributions.
crossOriginnull | string | undefined Cross origin setting for image requests.
logostring | undefined Logo.
urlstring Prefix of URL template.
tierSizeCalculationstring | undefined Tier size calculation method:
defaultortruncated.sizeol.Size Size of the image.
OpenLayers 3