Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #52407
    Abi_Suyoso
    Participant

    I am using LocusMap with Elevate renderthemes to display the map.
    I want to how to change the color of toll road from Orange to Blue by modifying .XML file ? Thank you

    #52418
    Avatar photoTobias
    Keymaster

    Change this rending rule:

    <rule cat="toll" e="way" k="toll" v="tl_yes" zoom-min="14"><!–zm–>
    				<rule e="way" k="highway" v="*">
    					<line stroke="#88DD0000" stroke-width="0.4" stroke-dasharray="1,12" stroke-linecap="round" />
    				</rule>
    </rule>

    Developer of Elevate mapstyle

    #52422
    Abi_Suyoso
    Participant

    Thanks Tobias.

    This is what I did.

    <rule cat=”toll” e=”way” k=”toll” v=”tl_yes”>
    <rule e=”way” k=”highway” v=”*”>
    <line stroke=”#0000FF” stroke-width=”1″
    stroke-dasharray=”15,1″ stroke-linecap=”square” />
    </rule>
    </rule>

    #52425
    Abi_Suyoso
    Participant

    Unfortunately, as I just found out,
    this does not work for a particular section of the toll road.
    Maybe it is because the road is new (less than 1 year in operation)
    I guess someone has to put some info on the map itself
    so it can be rendered correctly.
    Second thing I notice that the Locus Map app takes a longer time
    when drawing the map everytime I move the map outside the screen.
    I think the reason is because what I did is just putting many blue boxes on top of the existing toll road (already coloured in orange).
    Maybe this process taking a lot of computing resource. I don’t know.

    Thank you.

    #52428
    Abi_Suyoso
    Participant

    Another thing I notice that I need to turn ON
    the overlay [P] Car , in order to draw blue lines along the toll road.
    Otherwise, I will see the whole toll road still in original Orange colour.

    My question: Is there a better way to draw the toll road
    in Blue colour directly without using any overlay to maket Blue?

    Thank you.
    -Abi

    #52431
    Avatar photoJohnPercy
    Participant

    Try the following:
    <rule e=”way” k=”toll” v=”tl_yes”>
    <rule e=”way” k=”highway” v=”*”>
    <line stroke=”#0000FF” stroke-width=”1″/>
    </rule>
    </rule>

    Removing the cat makes the blue line show always
    Removing the dashed line instructions in the “line” code may also help, but I doubt it

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    #52435
    Abi_Suyoso
    Participant

    Thanks John. Yes, it did work.
    Coincidently, I also use your Voluntary and Velocity themes.
    That’s where I’ve got the idea to use Blue color for toll road, I think.

    Interestingly, I don’t see a missing blue lines when using Voluntary & Velocity themes. Just curious what happens here.

    #52438
    Avatar photoJohnPercy
    Participant

    In Voluntary, a toll road is marked by an orange/red border and orange/red disks on the road at zoom 12 (I thought) and above. Blue marks a motorway.
    I’ve checked and the section of road that doesn’t show as toll is not mapped as toll.

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    #52441
    Avatar photoJohnPercy
    Participant

    Attached is a screenshot of a toll road in Voluntary theme. Maybe you have a previous version?

    Screenshot_20230119-122600

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    #52444
    Abi_Suyoso
    Participant

    Sorry John, have modified your themes a little bit by deleting the little red circles from the road. I just want to see the road in clean blue.
    Yes, I use the latest version of the themes.

    Apart from the missing red circles in my case, Voluntary & Velocity themes shows continuous blue-colored toll roads.

    #52446
    Abi_Suyoso
    Participant

    I have confused the meaning of toll road and motorway.
    Is toll road the same as motorway but in the case of toll road,
    you have to pay some money when driving on it ?

    #52448
    Avatar photoJohnPercy
    Participant

    Motorway is limited access fast road, usually divided highway (dual carriageway in UK)
    Toll road is one where you pay to use, usually fast road but not always.

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    #52452
    Avatar photoTobias
    Keymaster

    Please keep in mind that Elevate isn’t optimzed for motorized traffic but for hiking and cycling. So marking a toll road has not motorways in mind, but e.g. small private toll roads in the mountains. That’s why red dots make more sense than a wide blue stroke. E.g. in this example one wouldn’t see that the sealed road changes to an usealed track:

    Screenshot-2023-01-19-205002

    Also making it optional is something important as car traffic is sometimes not so really interesting when only using your muscles 😉

    Developer of Elevate mapstyle

    1 user thanked author for this post.
    #52457
    Abi_Suyoso
    Participant

    Thank you so much John, Tobias for your help.
    I learn a lot. I use Locus Map mostly for travelling by car.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.