aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-bing-ol.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/map-bing-ol.js')
-rw-r--r--web/js/map-bing-ol.js22
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..2786f63cf 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('map_permalink'),
+ new OpenLayers.Control.PanZoomFMS()
+ ];
+ }
fixmystreet.map_type = OpenLayers.Layer.Bing;
}