Module: ol/source/OGCMapTile

ol/source/OGCMapTile


Classes

OGCMapTile

Type Definitions

Options{Object}

Properties:
Name Type Description
url string

URL to the OGC Map Tileset endpoint.

context Object | undefined

A lookup of values to use in the tile URL template. The {tileMatrix} (zoom level), {tileRow}, and {tileCol} variables in the URL will always be provided by the source.

mediaType string | undefined

The content type for the tiles (e.g. "image/png"). If not provided, the source will try to find a link with rel="item" that uses a supported image type.

projection ProjectionLike | undefined

Projection. By default, the projection will be derived from the crs of the tileMatrixSet. You can override this by supplying a projection to the constructor.

attributions AttributionLike | undefined

Attributions.

cacheSize number | undefined

Deprecated. Use the cacheSize option on the layer instead.

crossOrigin null | string | undefined

The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.

interpolate boolean
(defaults to true)

Use interpolated values when resampling. By default, linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.

reprojectionErrorThreshold number
(defaults to 0.5)

Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.

tileLoadFunction LoadFunction | undefined

Optional function to load a tile given a URL. The default is

function(tile, src) {
  tile.getImage().src = src;
};
wrapX boolean
(defaults to true)

Whether to wrap the world horizontally.

transition number | undefined

Duration of the opacity transition for rendering. To disable the opacity transition, pass transition: 0.

collections Array.<string> | undefined

A list of geospatial data sub-resources to include. If not provided, the entire dataset will be included. This option is not applicable when requesting the tileset for a single collection.