diff options
author | Struan Donald <struan@exo.org.uk> | 2013-03-20 14:22:59 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-03-20 14:22:59 +0000 |
commit | 34947cee57d1ef66daad384f5e5b21f0baa1f20a (patch) | |
tree | 4f56980d1228a2ad84df962c0de1ece9d0f6dbca /www/js/map-OpenLayers.js | |
parent | 8e4f4695499f19169b3b8b87663dbacdabdb7e35 (diff) |
set currentPosition whenever we center map
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 34a75a4..cf27934 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -290,6 +290,7 @@ function show_map(event) { new OpenLayers.Projection("EPSG:4326"), fixmystreet.map.getProjectionObject() ); + FMS.currentPosition = centre; fixmystreet.map.setCenter(centre, fixmystreet.zoom || 4); } |