- VectorTiles
- initialize
- search
- hideByProperty
- showByProperty
- restyleByProperty
- setFeatureStyle
- getLayer
- getGeoJSON
- removeFeature
Extends GridLayer
Manages interactive tiles of data
Examples
var vtLayer = new L.VectorTiles('http://mytiles.com/{z}/{x}/{y}.pbf', {
map: map,
debug: true
}).addTo(map);
Constructor
Parameters
Returns an array of feature ids near a given point
Parameters
min
L.LatLngmax
L.LatLng
Removes features from the map by property.
Wrapper function of _toggleByProperty
.
Equivalent to this._toggleByProperty(property, value, false)
.
Parameters
Add features to the map by property.
Wrapper function of _toggleByProperty
.
Equivalent to this._toggleByProperty(property, value, true)
.
Parameters
Change the style of features based on property values
Parameters
Returns L.VectorTiles this
Change the style of a feature by its id
Parameters
Returns L.VectorTiles this
Returns a reference to the layer identified by the id
Parameters
id
string
Returns L.Path
Returns a reference to the GeoJSON feature identified by the id
Parameters
id
string
Returns Object
Deletes a feature by its ID Note that this feature will still be loaded in subsequent tiles
Parameters
id
string
Returns L.VectorTiles this