JMap.Layer.deleteLayer
Deletes the layer in the data store and in the map.
The layer is not deleted server side, but only in the browser.
Use this function if you want to dynamically remove a layer.
The JMap layer id
Error if layer is not found
// Removes layer 4 (only client side)JMap.Layer.deleteLayer(4) Copy
// Removes layer 4 (only client side)JMap.Layer.deleteLayer(4)
JMap.Layer.deleteLayer
Deletes the layer in the data store and in the map.
The layer is not deleted server side, but only in the browser.
Use this function if you want to dynamically remove a layer.