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