Use asset_path to find the arrow icon

This commit is contained in:
Tom Hughes 2011-11-15 10:48:30 +00:00
parent 75f12f5b18
commit c61d24f08e

View 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;
}