]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/mapserver.map.erb
imagery: use leaflet.locatecontrol from jsdelivr
[chef.git] / cookbooks / imagery / templates / default / mapserver.map.erb
index 4bec1334f2a8dd9830f24aabbd6a1ae63647266b..1f918d0f8f8023a75a5e163b1a1dc4cff5476c3a 100644 (file)
@@ -7,7 +7,7 @@ MAP
     MIMETYPE "image/png"
     IMAGEMODE RGB
     EXTENSION "png"
-    FORMATOPTION "COMPRESSION=9"
+    FORMATOPTION "COMPRESSION=6"
     FORMATOPTION "PALETTE_FORCE=on"
     FORMATOPTION "PALETTE=/srv/imagery/common/ossv-palette.txt"
   END
@@ -19,7 +19,19 @@ MAP
     MIMETYPE "image/png"
     IMAGEMODE RGBA
     EXTENSION "png"
-    FORMATOPTION "COMPRESSION=9"
+    FORMATOPTION "COMPRESSION=6"
+  END
+<% end -%>
+<% if @extension == "os_om_local_png" -%>
+  OUTPUTFORMAT
+    NAME "os_om_local_png"
+    DRIVER AGG/PNG
+    MIMETYPE "image/png"
+    IMAGEMODE RGB
+    EXTENSION "png"
+    FORMATOPTION "COMPRESSION=6"
+    FORMATOPTION "PALETTE_FORCE=on"
+    FORMATOPTION "PALETTE=/srv/imagery/common/os-openmap-local-palette.txt"
   END
 <% end -%>