- AuthorPosts
- January 18, 2023 at 11:15 #52407Abi_SuyosoParticipant
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 youJanuary 18, 2023 at 21:42 #52418TobiasKeymasterChange 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
January 19, 2023 at 04:19 #52422Abi_SuyosoParticipantThanks 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>January 19, 2023 at 05:28 #52425Abi_SuyosoParticipantUnfortunately, 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.
January 19, 2023 at 06:33 #52428Abi_SuyosoParticipantAnother 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.
-AbiJanuary 19, 2023 at 09:48 #52431JohnPercyParticipantTry 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 itVoluntary and Velocity themes - https://voluntary.nichesite.org
January 19, 2023 at 12:07 #52435Abi_SuyosoParticipantThanks 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.
January 19, 2023 at 13:16 #52438JohnPercyParticipantIn 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
January 19, 2023 at 13:28 #52441JohnPercyParticipantAttached is a screenshot of a toll road in Voluntary theme. Maybe you have a previous version?
Voluntary and Velocity themes - https://voluntary.nichesite.org
January 19, 2023 at 13:58 #52444Abi_SuyosoParticipantSorry 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.
January 19, 2023 at 14:17 #52446Abi_SuyosoParticipantI 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 ?January 19, 2023 at 16:58 #52448JohnPercyParticipantMotorway 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
January 19, 2023 at 20:55 #52452TobiasKeymasterPlease 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:
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.
January 20, 2023 at 14:57 #52457Abi_SuyosoParticipantThank you so much John, Tobias for your help.
I learn a lot. I use Locus Map mostly for travelling by car. - AuthorPosts
- You must be logged in to reply to this topic.