Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #56958
    troNpo
    Participant

    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 photoTobias
    Keymaster

    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 user thanked author for this post.
    #57053
    troNpo
    Participant

    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.

    • This reply was modified 3 weeks, 1 day ago by troNpo.
    #57063
    Avatar photoTobias
    Keymaster

    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
    Participant

    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 photoTobias
    Keymaster

    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 users thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.