aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-03-20 12:07:03 +0000
committerStruan Donald <struan@exo.org.uk>2013-03-20 12:07:03 +0000
commit9eeab52898bda47f0b412d0e6880936a64de0726 (patch)
tree28d5be4c295b4bf933a65642fcce504d2dea8436 /www/js/map-OpenLayers.js
parent41ab04a13cb83f7e1e79fd5ed23989720fa0ee60 (diff)
display blue dot at current location and update as person moves
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index c4a6d68..34a75a4 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -147,6 +147,9 @@ function fixmystreet_onload() {
}
fixmystreet.map.addLayer(fixmystreet.markers);
+ fixmystreet.location = new OpenLayers.Layer.Vector('location');
+ fixmystreet.map.addLayer(fixmystreet.location);
+
if ( fixmystreet.zoomToBounds ) {
var bounds = fixmystreet.markers.getDataExtent();
if (bounds) { fixmystreet.map.zoomToExtent( bounds ); }