aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-bing-ol.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 16:40:22 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 16:40:22 +0100
commit74ce84b43c0e714849d7ad021fb0400356ce2fa8 (patch)
treed96ad51f8cd6f14a6526ec282ad7e70d3eec25c6 /web/js/map-bing-ol.js
parent0c5549a60ef3d86d672926d6e71c00cafff8326b (diff)
parent03ad5de783ac71695b1ce0d377dde549fc7311cb (diff)
Merge branch '1351-report-list-ajax'
Diffstat (limited to 'web/js/map-bing-ol.js')
-rw-r--r--web/js/map-bing-ol.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index 5e29daea1..3ad92b27e 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -1,4 +1,4 @@
-function _set_map_config() {
+fixmystreet.maps.config = function() {
var permalink_id;
if ($('#map_permalink').length) {
permalink_id = 'map_permalink';
@@ -15,12 +15,8 @@ function _set_map_config() {
if ( fixmystreet.page == 'report' ) {
fixmystreet.controls.push( new OpenLayers.Control.PermalinkFMS('key-tool-problems-nearby', '/around') );
}
-}
-
-function set_map_config(perm) {
- _set_map_config();
fixmystreet.map_type = OpenLayers.Layer.Bing;
-}
+};
OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
attributionTemplate: '${logo}${copyrights}',