aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenStreetMap.js5
-rw-r--r--web/js/map-bing-ol.js5
2 files changed, 8 insertions, 2 deletions
diff --git a/web/js/map-OpenStreetMap.js b/web/js/map-OpenStreetMap.js
index 58117aabf..7b44d8569 100644
--- a/web/js/map-OpenStreetMap.js
+++ b/web/js/map-OpenStreetMap.js
@@ -1,9 +1,12 @@
function set_map_config(perm) {
+ if ($('#map_permalink').length) {
+ permalink_id = 'map_permalink';
+ }
fixmystreet.controls = [
new OpenLayers.Control.ArgParser(),
//new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.Navigation(),
- new OpenLayers.Control.Permalink(),
+ new OpenLayers.Control.Permalink(permalink_id),
new OpenLayers.Control.PermalinkFMS('osm_link', 'http://www.openstreetmap.org/'),
new OpenLayers.Control.PanZoomFMS()
];
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index 2786f63cf..3eecf7ce0 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -1,4 +1,7 @@
function set_map_config(perm) {
+ if ($('#map_permalink').length) {
+ permalink_id = 'map_permalink';
+ }
if ($('html').hasClass('mobile')) {
fixmystreet.controls = [
new OpenLayers.Control.Attribution(),
@@ -9,7 +12,7 @@ function set_map_config(perm) {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Navigation({ zoomWheelEnabled: false }),
- new OpenLayers.Control.Permalink('map_permalink'),
+ new OpenLayers.Control.Permalink(permalink_id),
new OpenLayers.Control.PanZoomFMS()
];
}