Use asset_path to find the arrow icon
This commit is contained in:
parent
75f12f5b18
commit
c61d24f08e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue