Mapforge stores your maps in GeoJSON format. Below you can see the list of supported properties to style your map elements (called features in GeoJOSN).
Most of the properties are supported to be changed in the UI. For changing the properties directly, you can use the Edit JSON button in the feature details modal.
Extending the Mapbox Simplestyle Spec, Mapforge supports these feature attributes:
label
: Label to show on the map (no emoji support)label-size
: font size (default 16)label-color
: font color in format "#000000" (default)label-shadow
: font shadow in format "#ffffff" (default)sort-key
: higher numbers overlay labels with lower numbers (default: 1)title
: titledesc
: detailed description (markdown supported)marker-color
: circle color (default "green", 'transparent' for none)marker-size
: radius of the marker (default: 6, with 'marker-symbol' fixed to 16 )marker-opacity
: opacity of the marker (default: 0.7)marker-symbol
: taken as text/emoji, emoji list: https://emojipedia.org/google/15.1marker-image-url
: URL pointing to icon image. Can point to a Mapforge hosted image like /image/marker-scaling
: marker scales with zoom level (default: false)stroke-width
: width of the circle border line (default: 2)stroke
: circle border color (default "white", 'transparent' for none)heatmap
: if set, points will be styled as a heatmapflat
: if set, marker + label with be projected 'flat' on the mapstroke-width
: width of the line (default: 2)stroke
: line color (default: 'darkgreen')stroke-opacity
: opacity of the line (default: 0.8)stroke-image-url
: URL pointing to icon image that will get repeated along the line. Can point to a Mapforge hosted image like /icons/direction-arrow.pngstroke-symbol
: taken as text/emoji, emoji list: https://emojipedia.org/google/16stroke-dasharray
: true/false for making the stroke line dashed (default: false)fill-extrusion-color
: color of the extrusion (default: green)fill-extrusion-height
: height in mfill-extrusion-width
: width in mfill-extrusion-base
: ground distance in m (default: 0)show-km-markers
: show markers at each kilometer (default: false)stroke-width
: width of the line (default: 3)stroke
: line color (default: 'darkgreen', 'transparent' for none)stroke-opacity
: opacity of the line (default: 1.0)fill
: fill color (default: "#0A870A", green, 'transparent' for none)fill-opacity
: opacity of the fill color (default: 0.7)fill-extrusion-color
: color of the extrusion (default: green)fill-extrusion-height
: height in mfill-extrusion-base
: ground distance in m (default: 0)