Verified Commit e28f3aa8 authored by Elger Jonker's avatar Elger Jonker

Fix removing points on map when only polygons are loaded

parent 3d8a5372
Pipeline #40028897 passed with stage
in 13 minutes and 42 seconds
......@@ -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