Fix markers being left on world changes
This commit is contained in:
parent
83dfe59e39
commit
10295bb21c
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue