Open aaronyeo40 opened 3 years ago
I able to add multi layer based on dynamic url. May I know how to remove layer by id or name (once more than 1 layer).
var url_to_geotiff_fileaaa = "http://localhost:8086/leafletContent/tif/Abc1.tif";
fetch(url_to_geotiff_fileaaa) .then(function (response) { return response.arrayBuffer(); }) .then(function (arrayBuffer) { parseGeoraster(arrayBuffer).then(function (georaster) { layerB = new GeoRasterLayer({ georaster: georaster, resolution: 256 }); layerB.addTo(map); map.fitBounds(layerB.getBounds()); }); });
I able to add multi layer based on dynamic url. May I know how to remove layer by id or name (once more than 1 layer).
var url_to_geotiff_fileaaa = "http://localhost:8086/leafletContent/tif/Abc1.tif";