From: Tom Hughes Date: Fri, 25 Nov 2011 20:07:50 +0000 (+0000) Subject: Serve OpenLayers through the asset pipeline X-Git-Tag: live~6001 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/716262f211a8983a4272eabf3fdba9877b068b65 Serve OpenLayers through the asset pipeline --- diff --git a/app/assets/javascripts/openlayers.js b/app/assets/javascripts/openlayers.js new file mode 100644 index 000000000..5cdc4f23a --- /dev/null +++ b/app/assets/javascripts/openlayers.js @@ -0,0 +1,6 @@ +//= require OpenLayers +//= require OpenStreetMap + +OpenLayers._getScriptLocation = function() { + return "/assets/"; +}; diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 4b2093e3f..b84f7a483 100644 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@ -1,5 +1,4 @@ -<%= javascript_include_tag '/openlayers/OpenLayers.js' %> -<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %> +<%= javascript_include_tag 'openlayers.js' %> <%= javascript_include_tag 'map.js' %>