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