aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-24 17:58:28 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-24 17:58:28 +0100
commita8adcf384567b628e4e653e8be8ededd388ed4dc (patch)
tree27023c9263882f7c10e45d6f16afa02d46c86da1 /www/js
parent7ff0eea0c8a535ae0375fe1ad0810436b5051ca2 (diff)
need to convert lat/lon to correct projection for recentering map
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/around.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index 67983db..f1fb175 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -88,10 +88,11 @@
if ( !fixmystreet.map ) {
return;
}
+
// if there isn't a currentPosition then something
// is up so we probably should not recenter
if ( FMS.currentPosition ) {
- fixmystreet.map.panTo(FMS.currentPosition);
+ fixmystreet.map.panTo(this.projectCoords( FMS.currentPosition ));
}
},