destroy the feature when we leave
This commit is contained in:
parent
336a80530c
commit
a5509e3172
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ page << <<EOJ
|
|||
if (sf) {
|
||||
sf.destroy();
|
||||
sf = null;
|
||||
}
|
||||
}
|
||||
if (currentFeature) {
|
||||
currentFeature.destroy();
|
||||
currentFeature = null;
|
||||
}
|
||||
}
|
||||
function startDrag() {
|
||||
$("drag_box").innerHTML='Drag a box on the map to select an area';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue