model library

Data models and structures for map rendering and styling.

This library contains the core data models used throughout the rendering system, including layer management, geometric primitives, styling properties, and rendering context information.

Key model categories:

Classes

LayerContainer
A container which holds all paintings for one layer. A layer is defined by the datastore. It is a property of the ways/pois in the datastore. So in other words you can define which way should be drawn in the back and which should be drawn at the front.
LayerContainerCollection
A collection of layers. The id of the layer is defined by the node/way property in the mapfile. Since only 4 bits are reserved the layer can be max. 0-15.
LineSegment
A directed line segment between two Points in Screen pixels.
LineSegmentPath
A list of Linesegments which consists of segments in screen-pixels.
NodeProperties
Properties for one Node (PointOfInterest) read from the datastore. Note that the properties are dependent on the zoomLevel. Therefore one instance of NodeProperties can be used for one zoomlevel only.
RenderContext
RenderInfo<T extends Renderinstruction>
RenderInfoCollection
RenderInfoNode<T extends Renderinstruction>
RenderInfoWay<T extends Renderinstruction>
In the terminal window run
ShapePainter<T extends Renderinstruction>
The base class for all ui-dependent painters
WayProperties
Properties for one Way as read from the datastore. Note that the properties are dependent on the zoomLevel. Therefore one instance of WayProperties can be used for one zoomlevel only.

Enums

MapCap
Specifies the shape to be used for the endpoints of a line.
MapDisplay
The enum Display governs whether map elements should be displayed.
MapFillRule
Fill rules for areas
MapFontFamily
MapFontStyle
MapJoin
Specifies the shape to be used for the endpoints of a line.
MapPositioning
Enumeration defining positioning options for map elements like text labels and symbols.