imagery_site "agri.openstreetmap.org" do
title "OpenStreetMap - The Australian Geographic Reference Image"
- aliases ["a.agri.openstreetmap.org", "b.agri.openstreetmap.org", "c.agri.openstreetmap.org"]
bbox [[-44.74673, 111.5332], [-9.75237, 154.6875]]
end
imagery_site "hampshire.aerial.openstreetmap.org.uk" do
title "OpenStreetMap - Hampshire Hub Aerial"
- aliases ["a.hampshire.aerial.openstreetmap.org.uk", "b.hampshire.aerial.openstreetmap.org.uk", "c.hampshire.aerial.openstreetmap.org.uk"]
bbox [[50.68993, -1.97823], [51.39492, -0.70724]]
end
imagery_site "os.openstreetmap.org" do
title "OpenStreetMap - Ordnance Survey OpenData - Street View"
- aliases ["os.openstreetmap.org", "a.os.openstreetmap.org", "b.os.openstreetmap.org", "c.os.openstreetmap.org", "os.openstreetmap.org.uk", "a.os.openstreetmap.org.uk", "b.os.openstreetmap.org.uk", "c.os.openstreetmap.org.uk"]
+ aliases ["os.openstreetmap.org.uk"]
bbox [[49.85, -10.5], [58.75, 1.9]]
end
imagery_site "surrey.aerial.openstreetmap.org.uk" do
title "OpenStreetMap - Surrey Air Survey - 2009"
- aliases ["a.surrey.aerial.openstreetmap.org.uk", "b.surrey.aerial.openstreetmap.org.uk", "c.surrey.aerial.openstreetmap.org.uk"]
bbox [[51.06686, -0.85762], [51.47753, 0.06592]]
end
end
content YAML.dump(:name => layer,
:title => title || layer,
- :url => "http://#{site}/layer/#{layer}/{z}/{x}/{y}.png",
+ :url => "http://{s}.#{site}/layer/#{layer}/{z}/{x}/{y}.png",
:attribution => copyright,
:default => default_layer,
:maxZoom => max_zoom)
server {
listen 80;
- server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %><%- end -%>;
+ server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %> a.<%= alias_name %> b.<%= alias_name %> c.<%= alias_name %><%- end -%>;
root "/srv/<%= @name %>";