Fix area markers being left around after world changes
This commit is contained in:
parent
40320dca28
commit
f505a9e930
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
||||||
set.layergroup.removeLayer(marker.our_marker);
|
set.layergroup.removeLayer(marker.our_marker);
|
||||||
});
|
});
|
||||||
set.markers = {};
|
set.markers = {};
|
||||||
|
$.each(set.areas, function(aname, area) {
|
||||||
|
set.layergroup.removeLayer(area.our_area);
|
||||||
|
});
|
||||||
|
set.areas = {};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue