Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description urlstring URL to the OGC Map Tileset endpoint.
contextObject | 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.mediaTypestring | 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.
projectionProjectionLike | undefined Projection. By default, the projection will be derived from the
crsof thetileMatrixSet. You can override this by supplying a projection to the constructor.attributionsAttributionLike | undefined Attributions.
cacheSizenumber | undefined Deprecated. Use the cacheSize option on the layer instead.
crossOriginnull | string | undefined The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue 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.interpolateboolean
(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.
reprojectionErrorThresholdnumber
(defaults to 0.5)Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileLoadFunctionLoadFunction | undefined Optional function to load a tile given a URL. The default is
function(tile, src) { tile.getImage().src = src; };wrapXboolean
(defaults to true)Whether to wrap the world horizontally.
transitionnumber | undefined Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.collectionsArray.<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.