plepe / openstreetbrowser-categories-main

Styles of the "Main" category of OpenStreetBrowser
5 stars 11 forks source link

Detect correct network from semicolon-separated list #43

Closed Hufkratzer closed 2 years ago

Hufkratzer commented 2 years ago

In example https://openstreetbrowser.org/#map=17/45.44823/11.66348&categories=hiking_routes,cycle_routes you can see that OSB does not recognize network=rwn;rcn (route object is https://www.openstreetmap.org/relation/6048999)

Related discussions:

plepe commented 2 years ago

fixed in 10af93ef8dce5cd097bfefa038eb187b0b982a8c

Hufkratzer commented 2 years ago

Now it looks like the network is detected correctly in the menu on the left, but on the map the route is drawn in blue = color for unknown network, (I marked it with "?????"): OSB

plepe commented 2 years ago

Thanks for pointing this out, the lists in the popups are rendered separately (from the category). Fixed in 169a50beeeb4c5d7a03a767604359aa2d285bf08. I also improved the style in 7f2990959c497b3ff557d32e61a0e0f8ecb8a8f8.

Hufkratzer commented 2 years ago

Now the infobox looks a bit strange if there are more than one routes on one way: OSB https://openstreetbrowser.org/#cycle_routes/member:w106937676&map=17/51.10066/13.62838&categories=cycle_routes

I am not sure for how long this is so, but a year ago I think it was better.

plepe commented 2 years ago

Sorry, I forgot to write that I already fixed that in right after your post: 4dd51b46e26b6f622515347c12e7e8ab6631ab43.

Hufkratzer commented 2 years ago

Thanks.

There is another strange problem here:

If I open the link given above in a new browser tab (Opera or Chrome), the cpu load on my (not very powerful) notebook goes up to at least 75% (sometimes earlier, sometimes later) within the first minute. After about 3 minutes (+/- 1) more the cpu load quite abruptly drops to a minimal level again, all without any further action from my side after opening the new browser tab with OSB. Sometimes this whole browser tab completely freezes for some minutes and then recovers, what is a bit disturbing.