aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views/around.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views/around.js')
-rw-r--r--www/js/views/around.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index b9b7fc7..3c2c2d1 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -45,18 +45,17 @@
if ( !fixmystreet.map ) {
show_map();
} else {
+ FMS.currentPosition = coords;
var centre = this.projectCoords( coords );
- FMS.currentPosition = centre;
fixmystreet.map.panTo(centre);
}
FMS.locator.trackPosition();
},
positionUpdate: function( info ) {
+ FMS.currentPosition = info.coordinates;
var centre = this.projectCoords( info.coordinates );
- FMS.currentPosition = centre;
-
var point = new OpenLayers.Geometry.Point( centre.lon, centre.lat );
fixmystreet.location.removeAllFeatures();