clear highlight layers on each reload
This commit is contained in:
parent
cb3e514a70
commit
1e30d615e6
1 changed files with 1 additions and 0 deletions
|
@ -213,6 +213,7 @@ editor = {
|
|||
editor.map.removeLayer(editor._geometries_layer);
|
||||
}
|
||||
editor.map.removeLayer(editor._highlight_layer);
|
||||
editor._highlight_layer.clearLayers();
|
||||
$.getJSON(geometry_url, function(geometries) {
|
||||
editor._geometries_layer = L.geoJSON(geometries, {
|
||||
style: editor._get_geometry_style,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue