Commit 357f3293 authored by Elger Jonker's avatar Elger Jonker

Fix removing points on map when only polygons are loaded


Former-commit-id: e28f3aa8
parent 45e44d64
......@@ -605,7 +605,7 @@ const failmap = {
paddingToLeft=320;
// if there is one already, overwrite the attributes...
if (failmap.polygons.getLayers().length) {
if (failmap.polygons.getLayers().length || failmap.markers.getLayers().length) {
// add all features that are not part of the current map at all
// and delete the ones that are not in the current set
failmap.clean_map(regions, points);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment