aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/base/js/translation_strings.html2
-rw-r--r--web/js/map-bing-ol.js9
2 files changed, 4 insertions, 7 deletions
diff --git a/templates/web/base/js/translation_strings.html b/templates/web/base/js/translation_strings.html
index 2eb652c1f..4c4902fc5 100644
--- a/templates/web/base/js/translation_strings.html
+++ b/templates/web/base/js/translation_strings.html
@@ -64,6 +64,8 @@ fixmystreet.password_minimum_length = [% c.cobrand.password_minimum_length %];
map_map: '[% loc('Map', "JS") %]',
map_satellite: '[% loc('Satellite', "JS") %]',
+ map_aerial: '[% loc('Aerial', "JS") %]',
+ map_roads: '[% loc('Roads', "JS") %]',
expand_map: '[% loc('Expand map', "JS") %]',
collapse_map: '[% loc('Collapse map', "JS") %]',
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index bbaf22940..a329c4235 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -14,15 +14,10 @@ fixmystreet.maps.config = function() {
(function() {
$(function(){
- $('#map_layer_toggle').toggle(function(){
- $(this).text('Roads');
- fixmystreet.map.setBaseLayer(fixmystreet.map.layers[1]);
- }, function(){
- $(this).text('Aerial');
- fixmystreet.map.setBaseLayer(fixmystreet.map.layers[0]);
+ $(this).text(translation_strings.map_roads);
+ $(this).text(translation_strings.map_aerial);
});
});
-
})();
OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {