]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/mapserver.map.erb
Imagery - add root layer support
[chef.git] / cookbooks / imagery / templates / default / mapserver.map.erb
index c71b8b9d4d5883a61c1aff6c7f8d1203f6b51873..2c271a5fb90c8f3047d028c69e4bfe8afa997433 100644 (file)
@@ -1,19 +1,19 @@
 # DO NOT EDIT - This file is being maintained by Chef
 MAP
-  NAME "map-<%= @name %>"
+  NAME "map-<%= @layer %>"
   STATUS ON
   SIZE 256 256
   UNITS METERS
-  IMAGETYPE png
+  IMAGETYPE <%= @extension %>
     PROJECTION
-    "init=<%= @projection %>"
+    "init=<%= @projection.downcase %>"
   END
 
   LAYER
-    NAME "<%= @name %>"
+    NAME "<%= @layer %>"
     DATA "<%= @source %>"
     PROJECTION
-      "init=<%= @projection %>"
+      "init=<%= @projection.downcase %>"
     END
     STATUS       DEFAULT
     TYPE         RASTER