+++ /dev/null
-<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="location-arrow" class="svg-inline--fa fa-location-arrow fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"></path></svg>
\ No newline at end of file
+++ /dev/null
-<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="spinner" class="svg-inline--fa fa-spinner fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"></path></svg>
\ No newline at end of file
mode "644"
end
- cookbook_file "/srv/#{new_resource.site}/location-arrow-solid.svg" do
- source "location-arrow-solid.svg"
- user "root"
- group "root"
- mode "644"
-end
-
- cookbook_file "/srv/#{new_resource.site}/spinner-solid.svg" do
- source "spinner-solid.svg"
- user "root"
- group "root"
- mode "644"
- end
-
layers = Dir.glob("/srv/imagery/layers/#{new_resource.site}/*.yml").collect do |path|
YAML.safe_load(::File.read(path), [Symbol])
end
map.addControl(new L.Control.Permalink());
var lc = L.control.locate({
- position: 'topright',
- icon: '/location-arrow-solid.svg',
- iconLoading: '/spinner-solid.svg'
+ position: 'topright'
}).addTo(map);
return map;