aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-14 09:23:21 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-14 12:44:07 +0100
commitc3313f7206e832a7e78890b21372cdf72bdf70ad (patch)
treebab7797e482200c4349733048221a068ec3b9560 /web/js
parent102824cc005f48ba751e8cbb445c304cc1e25098 (diff)
Make aerial/roads translatable in JavaScript.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-bing-ol.js9
1 files changed, 2 insertions, 7 deletions
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, {