Thanks for the response cricri!

In the end I think for my use case of creating a railway overview map,
it's probably better to use "railway=rail", which is also used by
OpenRailwayMap.

I opened this feature request: https://github.com/osmandapp/O
smAnd/issues/17373
"Overview of railway connections when zoomed out"

Reto

On Wednesday, 7 June 2023 at 10:02:35 UTC+2 cricri du lauragais wrote:

> not possible
> see into this file how map is created
>  
> https://github.com/osmandapp/OsmAnd-resources/blob/master/obf_creation/rendering_types.xml
>
> you find this
> <type tag="route" value="train" nameTags="ref" namePrefix="train_" 
> minzoom="11" relationGroup="true" notosm="true"/>
>
> Le mercredi 7 juin 2023 à 08:55:41 UTC+2, [email protected] a écrit :
>
>> Hi!
>>
>> I'm trying to create a custom 'render.xml' that shows tag="route_train" 
>> at any zoom level, but the train routes get hidden when zooming out beyond 
>> level 11. Instead I'm able to render tag="railway" at any zoom level.
>>
>> Is it possible to render tag="route_train" at any zoom level? Am I doing 
>> something wrong in my render.xml, or are there some limitations of what 
>> gets rendered from outside render.xml?
>>
>> I'm using this basic render.xml to debug:
>>
>> ===============
>> <?xml version="1.0" encoding="utf-8"?>
>> <renderingStyle name="test2" depends="" version="1">
>>
>>     <line>
>>         <switch>
>>             <case tag="route_train" value="" color="#ff0000" 
>> strokeWidth="2"/>
>>             <case tag="railway" value="rail" color="#00ff00" 
>> strokeWidth="4"/>
>>         </switch>
>>     </line>
>>
>>     <order>
>>         <switch>
>>             <!-- Line -->
>>             <switch area="false" objectType="2" order="80">
>>                 <case tag="route_train" value="" order="102"/>
>>                 <case tag="railway" value="" order="101"/>
>>             </switch>
>>         </switch>
>>     </order>
>>
>> </renderingStyle>
>> ===============
>>
>> So I render:
>>
>>    - tag="railway": as a green line of 4px
>>    - tag="route_train": as a red line of 2px
>>
>> At zoom level 11 the route_train is still visible:
>> [image: 
>> https://user-images.githubusercontent.com/360800/242400403-506d4c81-9ed9-41d0-b684-75c141b8f51c.png]
>>
>>
>> But at zoom level 10 the route_train is hidden (while railway is still 
>> visible):
>>
>> Thanks for any hints.
>>
>> (crossposting from Github discussions, hoping that maybe somebody on the 
>> mailing list knows - 
>> https://github.com/osmandapp/OsmAnd/discussions/17316)
>>
>> Reto
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/d0e378f0-ed79-478a-8e15-727667addf8en%40googlegroups.com.

Reply via email to