Skip to main content

VectorTileService

For accessing ArcGIS Vector Tile Services that provide pre-generated vector tiles for fast rendering and client-side styling.

Constructor

ArgumentTypeDescription
idstringAn id to assign to the MapLibre GL source
mapMapA MapLibre GL or Mapbox GL map instance
esriServiceOptionsobjectOptions for the Vector Tile Service (see below)
vectorSourceOptionsobjectOptional MapLibre GL vector source options

Esri Service Options

OptionTypeDefaultDescription
urlstringRequired URL of the Vector Tile Service
tokenstringAuthentication token for secured services
fetchOptionsobjectAdditional fetch request options

Vector Source Options

OptionTypeDefaultDescription
minzoomnumber0Minimum zoom level for tiles
maxzoomnumber22Maximum zoom level for tiles
attributionstringAttribution text for the service