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

    Hi, I would like to add the OSMC-SYMBOLS icon pack to the theme I am developing.
    https://tronpoonpo.blogspot.com/p/exmapstema.html
    Mention of origin and acknowledgements, is any more license necessary?
    Thank you

    #56965
    Avatar-FotoTobias
    Administrator

    Hi,
    are you writing about the OSMC-Symbols in Elevate? Just have a look at licenses.txt:
    https://www.openandromaps.org/wp-content/users/tobias/licenses.txt
    -> – waymark symbols based on: Locus internal theme, Apache License and LocusUser#1 (Frank Schöneck)
    That’s how I credited, hoping that it’s right this way 🙂

    Developer of Elevate mapstyle

    1 Teilnehmer(n) gefällt dieser Beitrag
    #57053
    troNpo
    Teilnehmer

    Hello, it is possible to add a line of text“pathtext“ On the edges of „national_park/nature_reserve“ . As is done with administrative limits ?“admin_level“.
    I don’t know if this is possible or if I’m building the rule wrong.
    Thank you.

    #57063
    Avatar-FotoTobias
    Administrator

    I had this in Elevate before bboxweight nodes were introduced to prevent many repeated captions for protected areas, it worked with the tag-mapping then (2015):

    	
    <rule cat="borders" e="way" k="leisure|boundary" v="nature_reserve|national_park|protected_area">
    	<rule e="any" k="protect_class" v="1|~" zoom-min="15">
    		<line stroke="#909DFF9C" stroke-width="0.7" stroke-dasharray="15, 5, 5, 5" stroke-linecap="butt" />
    		<pathText k="name" font-style="bold_italic" font-family="serif" font-size="12" fill="#FFFFFF" stroke="#7DAD7D" stroke-width="2" />
    		<area src="file:ele_res/p_nature-reserve_x-large.png" />
    	</rule>
    </rule>
    

    I haven’t tested it and it probably needs to be converted to current tag-mapping.

    Developer of Elevate mapstyle

    #57065
    troNpo
    Teilnehmer

    Thank you, following your sample code, I got satisfactory results.
    I wonder if it is possible to improve, I want to limit the text to the perimeter lines, currently it is also displayed in the area (as if it were a grid)
    In the screenshot I show with a green arrow the desired text and red arrows the one I would like to delete if possible.
    <rule cat=“reserva_natural“ e=“way“ k=“leisure|boundary“ v=“nature_reserve|national_park|protected_area“>
    <rule e=“any“ k=“protect_class“ v=“*“ zoom-min=“14″>
    <pathText k=“name“ font-style=“bold_italic“ font-family=“serif“ font-size=“12″ fill=“#FFFFFF“ stroke=“#035500″ stroke-width=“2″ />
    </rule>
    </rule>
    This is what I use.
    Thanks a lot.

    #57068
    Avatar-FotoTobias
    Administrator

    This happens because areas get split up at tile edges in mapsforge maps. So any area larger than a tile consists of several areas, with additional borders at the tile edges. That’s why you see additional pathTexts at tile edges; if a border line is thin enough the repetition isn’t visible, but making a pathText so small is not reasonable.
    For administrative borders force-polygon-line=“true“ is used in tag-mapping, so this effect isn’t there because they are only lines, not areas. But doing this with protected areas would mean that they can’t be filled anymore with patterns or colors.
    That’s one of the reason why using the calculated bboxweight nodes instead of the areas for captions makes a lot of sense; also captions for areas get also repeated for every tile.

    Developer of Elevate mapstyle

    2 Teilnehmer(n) gefällt dieser Beitrag
    #58028
    troNpo
    Teilnehmer

    Hello again, in my style based on the default Mapsforge style the funicular tracks are not displayed.
    Can you give me any clues as to which part of the code I should review? Please, I do not find the error.

    #58031
    troNpo
    Teilnehmer

    I’ve found the solution, thank you

    2 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.