destroy the feature when we leave

This commit is contained in:
Christopher Schmidt 2008-04-21 23:22:08 +00:00
parent 336a80530c
commit a5509e3172

View file

@ -29,7 +29,11 @@ page << <<EOJ
if (sf) { if (sf) {
sf.destroy(); sf.destroy();
sf = null; sf = null;
} }
if (currentFeature) {
currentFeature.destroy();
currentFeature = null;
}
} }
function startDrag() { function startDrag() {
$("drag_box").innerHTML='Drag a box on the map to select an area'; $("drag_box").innerHTML='Drag a box on the map to select an area';