]> git.openstreetmap.org Git - rails.git/commitdiff
Use asset_path to find the arrow icon
authorTom Hughes <tom@compton.nu>
Tue, 15 Nov 2011 10:48:30 +0000 (10:48 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Nov 2011 10:48:30 +0000 (10:48 +0000)
app/assets/javascripts/map.js.erb [moved from app/assets/javascripts/map.js with 98% similarity]

similarity index 98%
rename from app/assets/javascripts/map.js
rename to app/assets/javascripts/map.js.erb
index 61393894b13028343aa4a2601262c5441169eae0..632f31456493badad09a46c135641e1f2332434e 100644 (file)
@@ -87,7 +87,7 @@ function createMap(divName, options) {
 function getArrowIcon() {
    var size = new OpenLayers.Size(25, 22);
    var offset = new OpenLayers.Pixel(-30, -27);
-   var icon = new OpenLayers.Icon("/images/arrow.png", size, offset);
+   var icon = new OpenLayers.Icon("<%= asset_path 'arrow.png' %>", size, offset);
 
    return icon;
 }