wms: layer added to map with control
This commit is contained in:
@@ -33,6 +33,14 @@ export default class extends Controller {
|
||||
else map.removeLayer(currentLayer);
|
||||
}
|
||||
|
||||
toggleCadastral() {
|
||||
const map = GisState.map;
|
||||
const wms = GisState.cartography.cadastral;
|
||||
|
||||
if (!map.hasLayer(wms)) map.addLayer(wms);
|
||||
else map.removeLayer(wms);
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Use Stimulus values?
|
||||
* @param {Event} event
|
||||
|
||||
Reference in New Issue
Block a user