Map {
- # Source file with XML map of OSM data
- XMLInput dump.osm
+ # Data sources
+ Source {
+ # Input file
+ File dump.osm
+
+ # File format:
+ # osmxml OpenStreetMap XML
+ # fixed Fixed objects (no File used, see FixedObjects section below)
+ # shape ESRI shape file (partial support only)
+ Format osmxml
+
+ # MapCSS stylesheet to apply (multiple style-sheets are allowed)
+ StyleSheet poskole.css
+
+ # Enable inline style properties (tags "style:<property>" or "style:<property>::<layer>")
+ InlineStyles 1
+ }
+
+ Source {
+ Format fixed
+ StyleSheet poskole.css
+ InlineStyles 1
+ }
# Projection of our map
Projection "+proj=utm +zone=33 +ellps=WGS84"
# Draw blue border around the requested rectangle
DrawBorder 0
- # MapCSS stylesheet to apply
- StyleSheet poskole.css
-
# Write SVG output here
SVGOutput output.svg
}
+FixedObjects {
+ # Fixed objects may be placed at specific positions on the paper
+ # with specific tags. Remember to enable the "fixed" data source.
+ Object {
+ # Image with a logo
+ X 374
+ Y 25
+ Tag style:icon-image '"icons/logo.svg"'
+ Tag style:icon-width 36
+ Tag style:z-index 99
+ }
+ Object {
+ # Map scale
+ X 325
+ Y 50
+ Tag leo:special scale
+ }
+}
+
Debug {
# Dump map data exactly as parsed
DumpSource 0