earth-genome / foodtwin-global-app

Repository for our work on the global foodtwin application.
MIT License
1 stars 0 forks source link

Display production layer #56

Closed vgeorge closed 1 month ago

vgeorge commented 2 months ago

The starting view should display the full layer:

Screenshot 2024-09-19 at 17 51 42

When an area is selected, the layer should be clipped to its bounds:

Screenshot 2024-09-19 at 17 54 31

The tileset is available at the Drive folder and would be hosted at Mapbox.

cc @oliverroick @faustoperez

vgeorge commented 2 months ago

In #67, we implemented the dot map for the food group, which will display uniformly across the entire world. To achieve the clipping effect as shown in the image above, I believe we have two options:

wrynearson commented 2 months ago

Thanks for outlining the options @vgeorge. I'd vote for the simpler solution at this point (dimming) if it doesn't have too negative of an impact on usability. Would the dimming only apply to the dots, or would it also dim other aspects (the base map, transportation routes, etc.)?

@faustoperez do you have any opinions?

vgeorge commented 2 months ago

@wrynearson I believe you meant dimming as the simpler solution? This is the most straightforward option. It would also dim the base map, yes. But we can position it bellow transportation routes so it would wouldn't impact other layers than contextual layers.

@faustoperez In addition to the Production Area page, this issue would also affect the Port & Depots page in the capture below:

image
faustoperez commented 1 month ago

Thanks for flagging @vgeorge!

Dimming sounds good if clipping involves a much more complex solution.

I am available to review the styles and fine-tune the interaction once implemented 👍