mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-14 14:25:21 +01:00
Fix area markers being left around after world changes
This commit is contained in:
parent
1d85fdd75c
commit
7f631379aa
@ -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…
Reference in New Issue
Block a user