Skip to content

Instantly share code, notes, and snippets.

@gislayer
Created January 15, 2021 14:35
function clearAll() {
database_1.add({
type: 'updateLayer',
param: {
layerId: 'layer1',
geojson: {
"type": "FeatureCollection",
"features": []
}
},
callback: function (status) {
if (status) {
clearLayer(layer1);
}
}
})
database_1.add({
type: 'updateLayer',
param: {
layerId: 'layer2',
geojson: {
"type": "FeatureCollection",
"features": []
}
},
callback: function (status) {
if (status) {
clearLayer(layer2);
}
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment