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 :copyright, String, :default => "Copyright"
property :projection, String, :default => "EPSG:3857"
:is => %w(png png8 jpeg),
:default => "png"
property :max_zoom, Fixnum, :default => 23
+property :url_aliases, [String, Array], :default => []
action :create do
template "/srv/imagery/mapserver/layer-#{layer}.map" do
action :delete
end
end
+
+def after_created
+ notifies :restart, "service[nginx]"
+end