aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-03-20 14:22:59 +0000
committerStruan Donald <struan@exo.org.uk>2013-03-20 14:22:59 +0000
commit34947cee57d1ef66daad384f5e5b21f0baa1f20a (patch)
tree4f56980d1228a2ad84df962c0de1ece9d0f6dbca /www/js/map-OpenLayers.js
parent8e4f4695499f19169b3b8b87663dbacdabdb7e35 (diff)
set currentPosition whenever we center map
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js1
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);
}