L.esri.Vector.Layer

L.esri.Vector.Layer is used to display vector tile services and attributes data providers appropriately. The Terms of Use for Esri hosted services apply to all Leaflet applications.

Inherits from L.Layer

Constructor

Constructor Description
L.esri.Vector.layer(<String> id, , <Object> options) key refers to the specific vector tile layer you'd like to add.
Custom Vector Tile Services

Whether you've made a small tweak to one of Esri's hosted vector basemaps or published your own vector tile service from scratch you can draw the layer in Esri Leaflet by referencing the item's id.

See this blog for more information: https://blogs.esri.com/esri/arcgis/2015/11/19/how-to-customize-esri-vector-basemaps/

Options

L.esri.Vector.Layer accepts all L.Layer options.

Methods

L.esri.Vector.Layer inherits all methods from L.Layer.

Example

<script src="./esri-leaflet-vector.js"></script>
var map = L.map('map').setView([37.75,-122.45], 12);
L.esri.Vector.layer('bd505ce3efff479bb4e87b182f180159').addTo(map);

Edit this page on GitHub