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/b528be85-98c6-4290-8b52-0d9e9380f543n%40googlegroups.com.