Fix area markers being left around after world changes
This commit is contained in:
parent
1d85fdd75c
commit
7f631379aa
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.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