I'm working on a project with several hundred defined polygon areas. I have a polyline which will intersect several of the polygons on its path. I'd like to keep the polygons hidden unless they're intersected by the polyline.
Is it possible to determine which polygons are intersected by the polyline?
Alternatively, I'm prepared to use EllipsoidGeodesic to test several points along the polyline if it's possible to determine if a point is contained within a polygon?
Cesium does not have these tests. It does, however, have a triangulation function so you could triangulate the polygon and then do point/polyline with triangle intersection, but it will take a bit of work. I suspect there are other JavaScript libraries you could include for these tests, perhaps even D3.