-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show tunnels in the map #160
Comments
The same could be achived when transforming tunnel layer from -1 to something higher... and I found your transform xml "tunnel-transform.xml". Could you please help me, how to use that (on non-windows)? And does this work too? Would maybe be a more elegant solution than changing from a color to a transparent svg. |
I have only taken over the tunnel-transform xml and processing. I am aware that there is a difference in macOS and Windows processing of tunnels but hadn't time to dig deeper there. If you could bring a little light into the tunnel-transform stuff that would be nice! 👍 |
Crazy... no idea what I do, but it seems to work with your processing and a little change (additional call) now for macOS: |
Please be careful! I updated to latest Oct31 build, since that it stopped showing maps at all! Same for a friend. I copied back my backups and deleted vtm-elemnt folder - no luck. |
There is a Telegram group for this? Do you have a link for that please, even if off-topic here? The one from your Readme page? The tunnels are in the map, if you create the tiles with your application. In vtm-elemnt.xml the code is missing to show it. I added many lines here (see my fork). Now, the tunnels will be drawn below forests. After changing the level to 0, the tunnels are shown correctly. |
yes, the one from the README, very busy in the last days :-)
Ok thanks for confiming, then my thoughts were allright. I also had a look at your fork! Cool that you changed a lot and also personalized the theme to suit you. Most likely the themes is what people do personalize. |
Hi @masc4ii, wahooMapsCreator/wahoomc/osm_maps_functions.py Lines 623 to 662 in a19add7
Could you please check if this works also with your local changes / theme? |
@treee111 : thank you! It works over here. Your code is better than my try. 👍 You could change the level value to 0 in the tunnel xml. When using 2, the tunnels are rendered over all other objects - maybe not necessary. |
thanks for your feedback @masc4ii and for bringing this up in general! We are getting there ;-) |
Great! Thank you! |
One more thing: I tried again on a fresh macOS.
osmium is not needed anymore, so this could be deleted. |
you are right, there are still three usages of osmium. Btw. nice, that the check for needed packages worked as intended 💯 I had a brief look. It seems to be not super easy to move the 1st and 2nd usage over to osmosis. I moved the 3rd usage over to osmosis, was easy ;-) Thanks for giving a hint on that! |
…as in Windows) (#165) * change macOS merging to osmosis calculate difference: osmium diff -c merged.osm.pbf merged_osmosis.osm.pbf difference is only 3 files: *n83638824 v9======> ] 26% *n3384511942 v5==============================================> ] 87% *n8983537175 v1========================================================] 100% * implement tunnel transform for both OS identically reduce doubled coding * set level value to 0 to not be rendered over all other objects When using 2, the tunnels are rendered over all other objects * sort .osm files with osmosis (was osmium on macOS before) osmium diff -c land1.osm land1_osmosis.osm [======================================================================] 100% * launch config for lake garda * shows tunnels for BOLTv2 and ROAMv2 taken from https://github.com/masc4ii/wahooMapsCreator/blob/124a5f964c01c0570c1a3942e8fc2ae6d28873e8/device_themes/vtm_theme_poi/vtm-elemnt.xml written here #160 (comment) * let the theme render tunnels for BOLT and BOLTv2 identical to ROAM * additional changes to the theme after checking in cruiser - dont have one but two entries for "use" of bolt2 and roam - change order to: bolt, roam, bolt2 - remove "outline" from BOLT entries (these are not defined)
Is your feature request related to a problem? Please describe.
See the maps around lake garda. All the tunnels are not shown. It is hard to see which road goes where.
Describe the solution you'd like
Show the tunnels...
Problems
The green forest area is not transparent and tunnels are rendered under the forest. That looks really bad.
Transparency
By accident I found out, that the Bolt2 and Roam2 devices can handle transparency. But only, if it is defined via SVG. So the solution for tunnels is to use a semi-transparent forest SVG. And now the map looks like this:
Pull request
As my personal theme is now reduced to Bolt2 and Roam2 (my friends and myself just have these two), I can't easily create a pull request - it is too different now. But you find my "tunnel solution" in these commits in my fork. If you find it useful, you could add it for all the other Wahoo devices in the main fork (if possible - I don't know and can't test for Bolt1 and Roam1).
de160ba
00bb392
The text was updated successfully, but these errors were encountered: