diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-25 12:52:07 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-25 12:52:07 +0100 |
commit | fced51235407e88d4c718b6fb9ca29af4ae31bc2 (patch) | |
tree | 1ed5b0030f0ab1dd88556b7c02aacca8dc3445d7 /www/js/map-OpenLayers.js | |
parent | 5e6a665c0022d2f44d2bac46677046e206ef1fe2 (diff) |
comments for the different layers
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index c6e56c3..26a29b2 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -110,6 +110,10 @@ function fixmystreet_onload() { styleMap: pin_layer_style_map }; + // This layer is for displaying the location of the current report. + // It's in its own layer as that means canceling a report means we only + // need to switch layer visibility rather than fetching the position of the + // existing reports all over again. fixmystreet.report_location = new OpenLayers.Layer.Vector("Report", pin_layer_options); fixmystreet.report_location.setVisibility(false) fixmystreet.map.addLayer(fixmystreet.report_location); @@ -166,6 +170,7 @@ function fixmystreet_onload() { } fixmystreet.map.addLayer(fixmystreet.markers); + // this layer is for the position of the 'You are here' blue dot fixmystreet.location = new OpenLayers.Layer.Vector('location'); fixmystreet.map.addLayer(fixmystreet.location); |