Tagged: tag-mappping
- AuthorPosts
- April 27, 2024 at 23:30 #55950cdavilaParticipant
Hello all
I’m new to OpenAndroMas and also to Mapsforge. I’m trying to build my own style for my maps. I see you mention the use of map-tagging to define which tags are included in the maps and at what zoom level they appear, but I see elevate style file defines its own rules for tags and zoom levels. What’s then the purpose of tag-mapping? Is it required at all? If a tag-mapping file is used when creating a map and then a style is used in an app, ¿which one takes precedence?
Thanks in advance for your help!April 27, 2024 at 23:43 #55951mbe57ModeratorObjects that do not become part of the map file, based on the tag mapping rules cannot be displayed, regardless what the theme XML states.
If something is in the map file, the theme controls what is displayed. However limited by the zoom levels of appearance in the map file (controlled by the tag mapping.
In short: a theme author needs to respect what the tag mapping puts into the map file at which zoom level.
Cheers
MichaelApril 28, 2024 at 15:40 #55952cdavilaParticipantThanks for your reply Michael.
I have created several test maps without using any tag-mapping file with a command like:osmosis –read-xml file="test.osm" –mapfile-writer file="test.map"
They seem to contain all map elements. As soon as I add a rule for a given element to my style.xml file and load it in OruxMaps, the elements are displayed and also respecting the zoom levels I put on the style.xml. So I must be missing something… Maybe there is some kind of tag-mapping builtin mapfile-writer?
April 28, 2024 at 16:05 #55953mbe57ModeratorWhat you describe is what I’d expect. No tag mapping means everything is included snd the theme xml is in full control.
If Christian did that for OAM, the map sizes would grow even more. One, but not the only reason for his tag mapping. Normalizing some OSM chaos is another reason.
Hence, with OAM you do have restrictions from its tag mapping. The XML is on the OAM website, but I do not recall the URL.
Cheers
MichaelApril 28, 2024 at 16:41 #55954cdavilaParticipantThanks again, it’s clear now
April 28, 2024 at 17:19 #55955EmuxParticipantNo tag-conf-file parameter means the internal default tag mapping is used:
https://github.com/mapsforge/mapsforge/blob/master/mapsforge-map-writer/src/main/config/tag-mapping.xmlThis is described in the map-writer documentation:
https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Map-Writer.md
Cruiser and Mapsforge developer – https://github.com/devemux86/cruiser2 users thanked author for this post.
- AuthorPosts
- You must be logged in to reply to this topic.