I have three layers as follows;
- ski areas (polygons)
- ski lifts (ways)
- ski rund (ways)
There is a unique ID that makes it relate back to the ski area. This is an example:
- ski areas (polygons) // id= 3cb98511ef6187cef677a3b8630430c57bb0e400
- ski lifts (ways) // skiArea = { "properties": { "activities": [ "downhill" ], "generated": false, "id": "3cb98511ef6187cef677a3b8630430c57bb0e400",...
- ski rund (ways): { "properties": { "activities": [ "downhill" ], "generated": false, "id": "3cb98511ef6187cef677a3b8630430c57bb0e400",
How are relations handled normally in mapbox gl js? What I would like to do is something like this;
- When the ski area is clicked, it will give statistical info such as percent beginner, intermediate and expert, number and length of lifts, number and length of runs.
- when the lift or the run is clicked, I am able to give stats for the object
Just wondering how best to handle this. Beginner here.