Betrachte 8 Beiträge - 1 bis 8 (von insgesamt 8)
  • Autor
    Beiträge
  • #21936
    hyperknot
    Teilnehmer

    I’m making a specialised theme for pilots (paraglider, sail plane, etc.) for using OpenAndroMaps maps.

    I’m tweaking the VTM’s default theme and progressing well so far, but some details are specific to OpenAndroMaps and I’d like to ask for help with them.

    How can I filter for the following:
    – power lines, of all kind
    – cable car or alpine hut’s food lift
    – wind turbines
    – millitary shooting range
    – air fields

    Can I find these in Elements or Elevate?

    Zsolt

    #21938
    Avatar-FotoTobias
    Administrator

    How can I filter for the following:
    – power lines, of all kind
    – cable car or alpine hut’s food lift
    – wind turbines
    – millitary shooting range
    – air fields

    You can find what’s contained in the maps here:
    https://www.openandromaps.org/map-basics-2/tag-mapping
    Some stuff is transformed:
    https://www.openandromaps.org/map-basics-2/tagtransform
    There might be a lot of stuff which would be interesting for pilots that isn’t contained. As these are cycling and hiking maps, our focus lies there to keep map size and creating manageable.

    Developer of Elevate mapstyle

    #21942
    hyperknot
    Teilnehmer

    I’m progressing in slow steps.

    1. Is this the right query to get all power lines?
    <m e=“way“ k=“power“ v=“line“>
    <line stroke=“#ff00f6″ stroke-dasharray=“20,10″ stroke-linecap=“butt“ stroke-width=“3.0″/>
    </m>
    <m e=“way“ k=“power“ v=“minor_line“>
    <line stroke=“#ff00f6″ stroke-dasharray=“20,10″ stroke-linecap=“butt“ stroke-width=“1.0″/>
    </m>

    2. I’m trying to get k=“generator:source“ v=“wind“, but it seems that they are missing from OpenAndroMaps. Even with Elements and Elevate, which contain these lines, the wind turbines are missing.

    Can you check what is happening here? Overpass turbo is listing them properly.
    http://overpass-turbo.eu/s/ucE

    #21944
    Avatar-FotoChristianK
    Administrator

    k=“generator:source“ v=“wind“, but it seems that they are missing from OpenAndroMaps

    Its included in the tag-mapping for both node and way:
    <osm-tag key='generator:source' value='wind' zoom-appear='14' />

    Not all elements (tags) included in the OpenAndroMaps are rendered by the elements/elevate theme.
    However – if a tag is included in the tag-mapping you can included it in the rendertheme too – just make an icon and add the rule to the theme.

    You find the tag-mapping and changelog here:
    https://www.openandromaps.org/en/map-basics-2/tag-mapping

    Best regards
    Christian

    #21949
    hyperknot
    Teilnehmer

    Hi Christian,

    I am trying to do exactly that, but somehow it doesn’t work.

    I have this in my file:

    <m e="node" k="generator:source" v="wind">
        <symbol src="file:symbols/peak.svg"/>
    </m>

    Yet, the ones in this map just doesn’t display:
    http://overpass-turbo.eu/s/ucE

    Moreover, I see

    <rule e="any" k="generator:source" v="wind">
        <symbol id="s_power_wind" src="file:ele_res/s_power_wind.svg" symbol-height="16" symbol-scaling="size" symbol-width="16"/>
        <rule e="any" k="*" v="*">
            <caption fill="#734A08" font-size="10" font-style="bold" k="name" position="above" stroke="#E5FFFFFF" stroke-width="2" symbol-id="s_power_wind"/>
        </rule>
    </rule>

    In Elements, and even with Elements those just do not display. I tried on all zoom levels. Can you check what is going there? Am I doing something wrong, or those nodes are possibly missing from the OAM map?

    #21953
    Avatar-FotoTobias
    Administrator

    I’m progressing in slow steps.

    1. Is this the right query to get all power lines?
    <m e=“way“ k=“power“ v=“line“>
    <line stroke=“#ff00f6″ stroke-dasharray=“20,10″ stroke-linecap=“butt“ stroke-width=“3.0″/>
    </m>
    <m e=“way“ k=“power“ v=“minor_line“>
    <line stroke=“#ff00f6″ stroke-dasharray=“20,10″ stroke-linecap=“butt“ stroke-width=“1.0″/>
    </m>

    As I don’t know the syntax for VTM themes I can’t help here. As long as you use the right values provided in tag-mapping mentionend above everything should work if you use the right syntax.

    2. I’m trying to get k=“generator:source“ v=“wind“, but it seems that they are missing from OpenAndroMaps. Even with Elements and Elevate, which contain these lines, the wind turbines are missing.

    Wind generators have been in the maps for a long time and were also displayed with Elevate. But there is a current issue with the latest maps discussed here:
    https://www.openandromaps.org/en/oam-forums/topic/missing-stuff/page/2/#post-21438
    Christian, can you have a look at it?

    Developer of Elevate mapstyle

    #21955
    Avatar-FotoChristianK
    Administrator

    http://overpass-turbo.eu/s/ucE

    Strange, these generator:source=wind should appear but they dont…….
    There is not ONE tag in the map_file.

    I will take a look at this issue

    #21957
    Avatar-FotoChristianK
    Administrator

    Found – a real stupid bug related to tag_cleanup for POIs
    OK, I have cleared this issue and restarted the Jannuary update of the maps.

    Sorry
    Christian

    1 Teilnehmer(n) gefällt dieser Beitrag
Betrachte 8 Beiträge - 1 bis 8 (von insgesamt 8)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.