aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/around.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index 74bef46..622c9f2 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -18,6 +18,10 @@
FMS.currentLocation = null;
this.listenTo(FMS.locator, 'gps_current_position', this.positionUpdate);
this.showMap(info);
+ } else if ( this.model && this.model.get('lat') ) {
+ var modelInfo = { coordinates: { latitude: this.model.get('lat'), longitude: this.model.get('lon') } };
+ this.listenTo(FMS.locator, 'gps_current_position', this.positionUpdate);
+ this.showMap(modelInfo);
} else {
this.locate();
}