Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description urlstring URL to the OGC Vector 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.formatFeatureFormat Feature parser for tiles.
mediaTypestring <optional>
The content type for the tiles (e.g. "application/vnd.mapbox-vector-tile"). If not provided, the source will try to find a link with rel="item" that uses a vector type supported by the configured format.
attributionsAttributionLike <optional>
Attributions.
attributionsCollapsibleboolean <optional>
true Attributions are collapsible.
cacheSizenumber <optional>
Initial tile cache size. Will auto-grow to hold at least twice the number of tiles in the viewport.
overlapsboolean <optional>
true This source may have overlapping geometries. Setting this to
false(e.g. for sources with polygons that represent administrative boundaries or TopoJSON sources) allows the renderer to optimise fill and stroke operations.projectionProjectionLike <optional>
'EPSG:3857' Projection of the tile grid.
tileClassClass<VectorTile> <optional>
Class used to instantiate image tiles. Default is
VectorTile.transitionnumber <optional>
A duration for tile opacity transitions in milliseconds. A duration of 0 disables the opacity transition.
wrapXboolean <optional>
true Whether to wrap the world horizontally. When set to
false, only one world will be rendered. When set totrue, tiles will be wrapped horizontally to render multiple worlds.zDirectionnumber | NearestDirectionFunction <optional>
1 Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See
getZForResolution.