aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-22 17:42:30 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-22 17:42:30 +0100
commit0bfcd019bcb53587df1b155d88b9e6617bdeeac9 (patch)
treed37c1c87ff03e101b749c7ff3fe04fbf48e21333 /www/js/map-OpenLayers.js
parent5ad9377cebaadc81d39d0af1f5d9006d6ffce85d (diff)
always set currentPosition to use lat/long
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index cf27934..c5ce747 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -286,11 +286,11 @@ function show_map(event) {
if (!fixmystreet.map.getCenter()) {
var centre = new OpenLayers.LonLat( fixmystreet.longitude, fixmystreet.latitude );
+ FMS.currentPosition = { latitude: centre.lat, longitude: centre.lon };
centre.transform(
new OpenLayers.Projection("EPSG:4326"),
fixmystreet.map.getProjectionObject()
);
- FMS.currentPosition = centre;
fixmystreet.map.setCenter(centre, fixmystreet.zoom || 4);
}