Unable to render 'route_train' when zooming out beyond 11

37 views
Skip to first unread message

Reto Kaiser

unread,
Jun 7, 2023, 2:55:41 AM6/7/23
to OsmAnd
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:
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

cricri du lauragais

unread,
Jun 7, 2023, 4:02:35 AM6/7/23
to OsmAnd
not possible
see into this file how map is created

you find this
<type tag="route" value="train" nameTags="ref" namePrefix="train_" minzoom="11" relationGroup="true" notosm="true"/>

Reto Kaiser

unread,
Jun 7, 2023, 1:47:45 PM6/7/23
to OsmAnd
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/OsmAnd/issues/17373
"Overview of railway connections when zoomed out"

Reto

Dane christian Neilson

unread,
Nov 29, 2023, 4:15:30 AM11/29/23
to OsmAnd
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+14234753476
Reply all
Reply to author
Forward
0 new messages