Verschlagwortet: 

Betrachte 6 Beiträge - 1 bis 6 (von insgesamt 6)
  • Autor
    Beiträge
  • #55950
    cdavila
    Teilnehmer

    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!

    #55951
    mbe57
    Moderator

    Objects 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
    Michael

    #55952
    cdavila
    Teilnehmer

    Thanks 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?

    #55953
    mbe57
    Moderator

    What 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
    Michael

    #55954
    cdavila
    Teilnehmer

    Thanks again, it’s clear now

    #55955
    Avatar-FotoEmux
    Teilnehmer

    No 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.xml

    This 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/cruiser

    • Diese Antwort wurde vor vor 1 Woche, 4 Tage von Avatar-FotoEmux bearbeitet.
    2 users thanked author for this post.
Betrachte 6 Beiträge - 1 bis 6 (von insgesamt 6)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.