Fix area markers being left around after world changes

This commit is contained in:
Mike Primm 2011-11-21 12:37:02 +08:00 committed by mikeprimm
parent 1d85fdd75c
commit 7f631379aa

View File

@ -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 = {};
});
}