X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a0858dce1ce11c24de0103a341bc0ea8f75154ea..fec6863727052589874a8727fb0cfd2f9cd2ef50:/cookbooks/imagery/resources/layer.rb diff --git a/cookbooks/imagery/resources/layer.rb b/cookbooks/imagery/resources/layer.rb index 96a57ea93..8c98e5ddb 100644 --- a/cookbooks/imagery/resources/layer.rb +++ b/cookbooks/imagery/resources/layer.rb @@ -25,7 +25,7 @@ property :layer, String, :name_property => true property :site, String, :required => true property :source, String, :required => true property :root_layer, [TrueClass, FalseClass], :default => false -property :text, String +property :title, String property :copyright, String, :default => "Copyright" property :projection, String, :default => "EPSG:3857" property :palette, String @@ -34,7 +34,7 @@ property :background_colour, String property :resample, String, :default => "average" property :imagemode, String property :extension, String, :default => "png" -property :max_zoom, Fixnum, :default => 23 +property :max_zoom, Fixnum, :default => 18 property :url_aliases, [String, Array], :default => [] property :revision, Fixnum, :default => 1 property :overlay, [TrueClass, FalseClass], :default => false @@ -51,7 +51,8 @@ action :create do path "/srv/imagery/layers/#{site}/#{layer}.yml" end content YAML.dump(:name => layer, - :url => "http://#{site}/layer/#{layer}/{z}/{x}/{y}.png", + :title => title || layer, + :url => "http://{s}.#{site}/layer/#{layer}/{z}/{x}/{y}.png", :attribution => copyright, :default => default_layer, :maxZoom => max_zoom)