malasiot / maplite

C++ tools for mapsforge vector tiles
MIT License
15 stars 4 forks source link

Renderer/writer support for osmc:symbol #1

Open malasiot opened 7 years ago

malasiot commented 7 years ago

osmc:symbol in hiking route relations provide a textual definition of a graphic symbol. Rendering of these symbols may be performed in various ways.

malasiot commented 7 years ago

The first approach has been implemented. In particular the src attribute is now parsed and occurences of ${tag} are replaced by the value of the tag or empty string if it occurs in the feature. The resulting src for osmc symbols should then be "symbol:osmc:". During rendering the descriptor is parsed and renderer to a recording surface that is also cached. Renderers that encounter this symbol (tested in Mobac) fail silently (i.e. show nothing).

The second approach is also easy to implement. TODO.