X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ae9131bc8e8aadd76b2ed7939be142e649d25653..ea63736b5c1b6e1d1adbf043f025cc9cb4171bcb:/app/assets/javascripts/openlayers.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/openlayers.js.erb b/app/assets/javascripts/openlayers.js.erb index c428da014..ebb9578a3 100644 --- a/app/assets/javascripts/openlayers.js.erb +++ b/app/assets/javascripts/openlayers.js.erb @@ -1,5 +1,7 @@ //= require OpenLayers //= require OpenStreetMap +//= require SimpleLayerSwitcher +//= require SimplePanZoom OpenLayers.Util.imageURLs = { "404.png": "<%= asset_path 'img/404.png' %>", @@ -28,8 +30,6 @@ OpenLayers.Util.imageURLs = { "zoom-world-mini.png": "<%= asset_path 'img/zoom-world-mini.png' %>" }; -OpenLayers.Util.OSM.MISSING_TILE_URL = "<%= asset_path 'img/404.png' %>"; - OpenLayers.Util.origGetImageLocation = OpenLayers.Util.getImageLocation; OpenLayers.Util.getImageLocation = function(image) {