diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-25 12:48:22 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-25 12:48:22 +0100 |
commit | 5e6a665c0022d2f44d2bac46677046e206ef1fe2 (patch) | |
tree | f62d0880d1876af39a0fba3f65654724a88342d1 /www/js/map-OpenLayers.js | |
parent | 1df84c2dca9abebcadb72836990adccc938d769c (diff) |
put report location pin on own layer as it makes managing pin display much easier
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 b285d89..c6e56c3 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -109,6 +109,11 @@ function fixmystreet_onload() { }, styleMap: pin_layer_style_map }; + + fixmystreet.report_location = new OpenLayers.Layer.Vector("Report", pin_layer_options); + fixmystreet.report_location.setVisibility(false) + fixmystreet.map.addLayer(fixmystreet.report_location); + if (fixmystreet.page == 'around') { fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX({ ratio: 1 }); pin_layer_options.strategies = [ fixmystreet.bbox_strategy ]; |