mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-19 21:32:33 +01:00
Fix markers being left on world changes
This commit is contained in:
parent
2f7890a40b
commit
7bee1dcae5
@ -9,6 +9,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
|||||||
$.each(set.markers, function(mname, marker) {
|
$.each(set.markers, function(mname, marker) {
|
||||||
set.layergroup.removeLayer(marker.our_marker);
|
set.layergroup.removeLayer(marker.our_marker);
|
||||||
});
|
});
|
||||||
|
set.markers = {};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user