]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Disable map key on non-default layers
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.throttle-debounce.js', 'https://raw.github.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
4   end
5
6   folder 'leaflet' do
7     file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet-src.js'
8     file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.css'
9     file 'leaflet.ie.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.ie.css'
10
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}", "http://cdn.leafletjs.com/leaflet-0.6.3/images/#{image}"
15     end
16
17     from 'git://github.com/kajic/leaflet-locationfilter.git' do
18       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
19       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
20       folder 'img', 'src/img'
21     end
22
23     from 'git://github.com/domoritz/leaflet-locatecontrol.git' do
24       file 'leaflet.locate.js', 'src/L.Control.Locate.js'
25     end
26
27     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
28       file 'leaflet.osm.js', 'leaflet-osm.js'
29     end
30
31     from 'git://github.com/mlevans/leaflet-hash.git' do
32       file 'leaflet.hash.js', 'leaflet-hash.js'
33     end
34   end
35
36   folder 'ohauth' do
37     from 'git://github.com/osmlab/ohauth.git' do
38       file 'ohauth.js'
39     end
40   end
41
42   folder 'iD' do
43     from 'git://github.com/systemed/iD', :branch => 'release' do
44       folder 'iD/img', 'dist/img'
45       folder 'iD/locales', 'dist/locales'
46       file 'iD.css.erb', 'dist/iD.css' do |path|
47         rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
48       end
49       file 'iD.js', 'dist/iD.js'
50     end
51   end
52 end