diff options
| author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-18 13:21:11 +0000 |
|---|---|---|
| committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-18 13:21:11 +0000 |
| commit | 463993f6bfd47dd5e4b8c750e45b9e72912e3abb (patch) | |
| tree | 47ec70dd42c5f98084332ccabd109139cc3735db /static/edit_map.js | |
| parent | ae0b72b845ac0100aa3f42095f1f31631f787752 (diff) | |
| download | Chimère-463993f6bfd47dd5e4b8c750e45b9e72912e3abb.tar.bz2 Chimère-463993f6bfd47dd5e4b8c750e45b9e72912e3abb.zip | |
Zoom to the modified feature in administration
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@19 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'static/edit_map.js')
| -rw-r--r-- | static/edit_map.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/edit_map.js b/static/edit_map.js index fa13dbb..4799341 100644 --- a/static/edit_map.js +++ b/static/edit_map.js @@ -50,6 +50,10 @@ var putMarker = function (lonlat){ ' ' + lonlat.lat + ')'; document.getElementById('live_latitude').value = lonlat.lon; document.getElementById('live_longitude').value = lonlat.lat; + /*zoom to the point*/ + var bounds = layerMarkers.getDataExtent(); + if (bounds) map.zoomToExtent(bounds); + return; } /* main initialisation function */ |
