I use OsmAnd daily and I am interested in getting more involved with its 
development as I believe this is the best available FLOSS Android OSM 
renderer. I use the version OsmAnd~ that is available on f-droid.org 
version 3.3.8.

I'm experimenting with custom rendering - changing the `default.render.xml` 
file to create different map views. 

I attempted to run the OsmAnd map creator which I downloaded from here: 
https://osmand.net/downloads but this version appears to be missing the 
`OsmAndMapCreator.jar` file. I would ideally like to be able to render on 
both my Android device and my PC, but I'm focusing on Android for now. 

I am therefore experimenting by modifying the `default.render.xml` to my 
`Internal shared storage\Android\data\net.osmand.plus\files\rendering` 
folder. I realise that I can create dependent render files and alternate 
map styles, but I chose this method to be sure that my changes were 
immediately visible and that there wasn't any mistake in how they inherit.

I am trying to create a map style that better represents inland waterways 
than the default or nautical styles do. My first goal is to make waterways 
features more prominent by setting icons for them and ensuring they are 
displayed at higher zoom levels, starting with the feature 
`waterway=lock_gate`.

This tag appears 3 times in the `default.render.xml`:

    <case minzoom="15" tag="waterway" value="lock_gate" textDy="7" 
textWrapWidth="30" textOrder="212"/>

    <case minzoom="15" tag="waterway" value="lock_gate" 
icon="waterway_lock_gate_small">
        <apply_if moreDetailed="false" maxzoom="15" icon=""/>
    </case>

    <case minzoom="15" tag="waterway" value="lock_gate" strokeWidth="2" 
color="#77999999">
        <case minzoom="17" strokeWidth="3"/>
        <apply_if nightMode="true" color="#77444444"/>
    </case>

I added ` icon="seamark_lock_gate"` to the first of these, and I updated 
all of these minzoom values to 11. The icon correctly displays, but at zoom 
14 or less the icon stops displaying.

I did notice a similar topic that did not have any responses: 
https://groups.google.com/forum/#!searchin/osmand/minzoom%7Csort:date/osmand/t13gKaD8sZk/LA7XifmpAAAJ

Does anyone have any suggestions for what I can try?

-- 
You received this message because you are subscribed to the Google Groups 
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osmand+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/3f4019c4-be17-4b19-8d0e-46c138881457%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to