nptscot / npt

Data processing code, also use this repo for issue tracking for the Network Planning Tool. See https://nptscot.github.io for development version
https://www.npt.scot/
GNU Affero General Public License v3.0
5 stars 0 forks source link

Most important segments should always be 'on top' in network pmtiles #400

Closed Robinlovelace closed 4 months ago

Robinlovelace commented 8 months ago

As discussed with @wangzhao0217 the following is not right:

image

The largest value (probably of Go Dutch for all) should be 'above' the others, otherwise you get visual artefacts like this.

Example where we got the order right: https://cruse.bike/

This just involves something like

rnet = rnet |>
  arrange(go_dutch)

Before saving the pmtiles.

cc @mem48

Robinlovelace commented 4 months ago

Demo of locally hosted fix in commit above:

image

Robinlovelace commented 4 months ago

The opposite extreme for reference:

image