Open
Description
opened on Oct 3, 2022
hi
I have added a layer to the map with below code and after I want to remove that layer from the map, how can I do this?
vectorUrl ='http://localhost:7800/asphalt/{z}/{x}/{y}.pbf';
vectorTileStyling[vectorLayerId] = {
fill: true,
fillColor: 'green',
fillOpacity: 0.1,
color: 'green',
opacity: 0.7,
weight: 2,
// dashArray: '2, 6',
}
var vectorTileOptions = {
rendererFactory: L.canvas.tile,
subdomains: '0123', // 01234 for openmaptiles, abcd for mapbox
vectorTileLayerStyles: vectorTileStyling
}
bandar_asphalt = L.vectorGrid.protobuf(vectorUrl, vectorTileOptions).addTo(MAP);`
Metadata
Assignees
Labels
No labels
Activity