stamen / chartographer

https://stamen.github.io/chartographer/
MIT License
19 stars 4 forks source link

Account for line overlap at higher zooms #8

Closed kelsey-taylor closed 2 years ago

kelsey-taylor commented 2 years ago

Describe the issue

We've been using the line width chart to QA/update the road network in https://github.com/stamen/amazon-MapStyleSandbox/issues/343 🙌

There are many cases (particularly with the road network layers) where the lines overlap at higher zooms, which can make it difficult to parse individual layers from one another. How can we account for wider features at higher zooms without overlap?

Screen Shot 2022-01-31 at 11 41 26 AM
aparlato commented 2 years ago

I think I see how this is working and this appears to be a hardcoded distance (each layer is given a margin from the top of how far in layer list * 65). We should be able to change this per layer to look at the widest a line layer gets and change that line to incorporate that information.

@kelsey-taylor doing this, is it preferable to have each layer take up as much space as it needs, or is it better to have them all spaced evenly based on the widest layer in the style?

kelsey-taylor commented 2 years ago

I'm thinking as much as it needs, especially given the huge disparity for a couple layers at high zooms:

Screen Shot 2022-01-31 at 12 08 20 PM

Curious if @ebrelsford has thoughts here and/or an in-progress solution of this started already 💭