aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/map-OpenLayers.js1
-rw-r--r--www/js/views/around.js1
2 files changed, 2 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);
}
diff --git a/www/js/views/around.js b/www/js/views/around.js
index eb741ff..2affa7a 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -72,6 +72,7 @@
new OpenLayers.Projection("EPSG:4326"),
fixmystreet.map.getProjectionObject()
);
+ FMS.currentPosition = centre;
fixmystreet.map.panTo(centre);
}
FMS.locator.updatePosition();