nprapps / ice-melt

https://apps.npr.org/arctic-ice-melting-climate-change/
Other
0 stars 0 forks source link

maps: Ability to change baselayer data based on scene #83

Closed DanielJWood closed 1 year ago

DanielJWood commented 1 year ago

If we have to zoom close to a place next to the ocean, the current coastline resolution (110m) is probably too sketchy. It would be good to have the ability to pass a variable to the render that changes the baselayer from 110m to 50m or 10m Natural Earth data (we are using the physical "land" polygons).

Here's an example of a globe that changes from 50m to 110m when the globe is being dragged (for performance reasons, I believe). We'd want to do something similar, although, not changing for pan/zoom...changing based on visual needs. Close up 50m, zoomed out 110m.

I have no idea how loading both of these would effect performance, so the big question is partly whether doing this at all would be feasible, or if it's just too bulky of an option.

OH! And another option would be to load 50m for everything but to tweak the existing minArea variable, which is used for simplification, to achieve more sketchy at zoomed out, less sketchy at zoomed in.

alykat commented 1 year ago

backlog for now

DanielJWood commented 1 year ago

opted to switch to 50m baselayer and generalize based on minarea instead.