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