diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-02-29 09:22:42 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-02-29 09:22:42 +0000 |
commit | 108e3c53e8fc6a9e2a9d9c1151647f049225ed96 (patch) | |
tree | dd6ea8effa04fa7709d413f6e27cb4214a58ec69 /web/js/map-bing-ol.js | |
parent | bf37b3a9e5c002ad69abb9f66fd6b484b6e7e1b4 (diff) |
Main part of mobile site full screen map for reporting a problem.
Diffstat (limited to 'web/js/map-bing-ol.js')
-rw-r--r-- | web/js/map-bing-ol.js | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js index 588f8d45b..4d01563a3 100644 --- a/web/js/map-bing-ol.js +++ b/web/js/map-bing-ol.js @@ -1,12 +1,18 @@ function set_map_config(perm) { - fixmystreet.controls = [ - new OpenLayers.Control.Attribution(), - new OpenLayers.Control.ArgParser(), - new OpenLayers.Control.Navigation({ zoomWheelEnabled: false }), - perm, - //new OpenLayers.Control.ZoomPanel() - new OpenLayers.Control.PanZoomFMS() - ]; + if ($('html').hasClass('mobile')) { + fixmystreet.controls = [ + new OpenLayers.Control.Attribution(), + new OpenLayers.Control.ArgParser() + ]; + } else { + fixmystreet.controls = [ + new OpenLayers.Control.Attribution(), + new OpenLayers.Control.ArgParser(), + new OpenLayers.Control.Navigation({ zoomWheelEnabled: false }), + new OpenLayers.Control.Permalink(), + new OpenLayers.Control.PanZoomFMS() + ]; + } fixmystreet.map_type = OpenLayers.Layer.Bing; } |