Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description urlstring URL to the OGC Map Tileset endpoint.
contextObject <optional>
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 <optional>
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 <optional>
Projection. By default, the projection will be derived from the
crsof thetileMatrixSet. You can override this by supplying a projection to the constructor.attributionsAttributionLike <optional>
Attributions.
cacheSizenumber <optional>
Tile cache size. The default depends on the screen size. Will be ignored if too small.
crossOriginnull | string <optional>
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 <optional>
true Use interpolated values when resampling. By default, linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
reprojectionErrorThresholdnumber <optional>
0.5 Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileLoadFunctionLoadFunction <optional>
Optional function to load a tile given a URL. The default is
function(tile, src) { tile.getImage().src = src; };wrapXboolean <optional>
true Whether to wrap the world horizontally.
transitionnumber <optional>
Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.