Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description url
string URL to the OGC Vector Tileset endpoint.
context
Object <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.format
FeatureFormat Feature parser for tiles.
mediaType
string <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.
attributions
AttributionLike <optional>
Attributions.
attributionsCollapsible
boolean <optional>
true Attributions are collapsible.
cacheSize
number <optional>
Initial tile cache size. Will auto-grow to hold at least twice the number of tiles in the viewport.
overlaps
boolean <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.projection
ProjectionLike <optional>
'EPSG:3857' Projection of the tile grid.
tileClass
Class<VectorTile> <optional>
Class used to instantiate image tiles. Default is
VectorTile
.transition
number <optional>
A duration for tile opacity transitions in milliseconds. A duration of 0 disables the opacity transition.
wrapX
boolean <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.zDirection
number | NearestDirectionFunction <optional>
1 Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See
getZForResolution
.