+ if new_resource.overlay
+ path "/srv/imagery/overlays/#{site}/#{layer}.yml"
+ else
+ path "/srv/imagery/layers/#{site}/#{layer}.yml"
+ end
+ content YAML.dump(:name => layer,
+ :title => title || layer,
+ :url => "http://{s}.#{site}/layer/#{layer}/{z}/{x}/{y}.png",
+ :attribution => copyright,
+ :default => default_layer,
+ :maxZoom => max_zoom)