destroy the feature when we leave
This commit is contained in:
parent
336a80530c
commit
a5509e3172
1 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,10 @@ page << <<EOJ
|
||||||
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';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue