Maperitive Text Formatting

I’m in the middle of implementing new features for formatting text in Maperitive. The above map shows just some of them:

  • Word wrapping: a new text-max-width property specifies the maximum width of the text. Everything else will be moved to a new line.
  • Alignment: text-align-horizontal and text-align-vertical are the new properties for this.
  • Offsetting: you will be able to move the text horizontally (text-offset-horizontal) or vertically (text-offset-vertical) from the original point. This enables showing icons for peaks and their names pushed below to prevent overlapping.
  • Some other text-related stuff I haven’t yet implemented, but let’s leave this as a surprise.

The new version will probably be released sooner than planned because I decided to leave the SVG exporting work for another release.