2 //= require OpenStreetMap
4 OpenLayers.Util.imageURLs = {
5 "img/404.png": "<%= asset_path '404.png' %>",
6 "img/blank.gif": "<%= asset_path 'blank.gif' %>",
7 "img/cloud-popup-relative.png": "<%= asset_path 'cloud-popup-relative.png' %>",
8 "img/drag-rectangle-off.png": "<%= asset_path 'drag-rectangle-off.png' %>",
9 "img/drag-rectangle-on.png": "<%= asset_path 'drag-rectangle-on.png' %>",
10 "img/east-mini.png": "<%= asset_path 'east-mini.png' %>",
11 "img/layer-switcher-maximize.png": "<%= asset_path 'layer-switcher-maximize.png' %>",
12 "img/layer-switcher-minimize.png": "<%= asset_path 'layer-switcher-minimize.png' %>",
13 "img/marker-blue.png": "<%= asset_path 'marker-blue.png' %>",
14 "img/marker-gold.png": "<%= asset_path 'marker-gold.png' %>",
15 "img/marker-green.png": "<%= asset_path 'marker-green.png' %>",
16 "img/marker.png": "<%= asset_path 'marker.png' %>",
17 "img/measuring-stick-off.png": "<%= asset_path 'measuring-stick-off.png' %>",
18 "img/measuring-stick-on.png": "<%= asset_path 'measuring-stick-on.png' %>",
19 "img/north-mini.png": "<%= asset_path 'north-mini.png' %>",
20 "img/panning-hand-off.png": "<%= asset_path 'panning-hand-off.png' %>",
21 "img/panning-hand-on.png": "<%= asset_path 'panning-hand-on.png' %>",
22 "img/slider.png": "<%= asset_path 'slider.png' %>",
23 "img/south-mini.png": "<%= asset_path 'south-mini.png' %>",
24 "img/west-mini.png": "<%= asset_path 'west-mini.png' %>",
25 "img/zoombar.png": "<%= asset_path 'zoombar.png' %>",
26 "img/zoom-minus-mini.png": "<%= asset_path 'zoom-minus-mini.png' %>",
27 "img/zoom-plus-mini.png": "<%= asset_path 'zoom-plus-mini.png' %>",
28 "img/zoom-world-mini.png": "<%= asset_path 'zoom-world-mini.png' %>"
31 OpenLayers.Util.origCreateImage = OpenLayers.Util.createImage;
33 OpenLayers.Util.createImage = function(id, px, sz, imgURL, position, border,
34 opacity, delayDisplay) {
35 imgURL = OpenLayers.Util.imageURLs[imgURL] || imgURL;
37 return OpenLayers.Util.origCreateImage(id, px, sz, imgURL, position,
38 border, opacity, delayDisplay);