1 folder 'vendor/assets' do
3 file 'jquery.cookie.js', 'https://raw.githubusercontent.com/carhartl/jquery-cookie/master/src/jquery.cookie.js'
4 file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
8 file 'leaflet.js', 'https://unpkg.com/leaflet@1.6.0/dist/leaflet-src.js'
9 file 'leaflet.css', 'https://unpkg.com/leaflet@1.6.0/dist/leaflet.css'
11 [ 'layers.png', 'layers-2x.png',
12 'marker-icon.png', 'marker-icon-2x.png',
13 'marker-shadow.png' ].each do |image|
14 file "images/#{image}", "https://unpkg.com/leaflet@1.6.0/dist/images/#{image}"
17 from 'git://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.5.1' do
18 file 'leaflet.contextmenu.js', 'dist/leaflet.contextmenu.js'
19 file 'leaflet.contextmenu.css', 'dist/leaflet.contextmenu.css'
22 from 'git://github.com/kajic/leaflet-locationfilter.git' do
23 file 'leaflet.locationfilter.css', 'src/locationfilter.css'
24 file 'leaflet.locationfilter.js', 'src/locationfilter.js'
25 folder 'img', 'src/img'
28 from 'git://github.com/domoritz/leaflet-locatecontrol.git', :tag => 'v0.71.0' do
29 file 'leaflet.locate.js', 'src/L.Control.Locate.js'
32 from 'git://github.com/jfirebaugh/leaflet-osm.git' do
33 file 'leaflet.osm.js', 'leaflet-osm.js'
36 from 'git://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.9' do
37 file 'leaflet.polyline.js', 'Polyline.encoded.js'
42 from 'git://github.com/osmlab/ohauth.git' do
48 from 'git://github.com/openstreetmap/iD', :branch => 'release' do
49 folder 'iD/data', 'dist/data'
50 folder 'iD/img', 'dist/img'
51 folder 'iD/locales', 'dist/locales'
52 folder 'iD/mapillary-js', 'dist/mapillary-js'
53 folder 'iD/pannellum-streetside', 'dist/pannellum-streetside'
55 file 'iD.css.erb', 'dist/iD.css' do |path|
56 rewrite(path) do |content|
57 content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
61 file 'iD.js', 'dist/iD.legacy.js'
66 file 'es5.js', 'https://polyfill.io/v3/polyfill.js?features=es5&flags=gated,always'
67 file 'es6.js', 'https://polyfill.io/v3/polyfill.js?features=es6&flags=gated,always'
71 from 'git://github.com/swfobject/swfobject.git', :tag => '2.2' do
72 file 'expressInstall.swf', 'swfobject/expressInstall.swf'
73 file 'swfobject.js', 'swfobject/src/swfobject.js'