Collision box utility for Mapbox GL JS.
Function | Description |
---|---|
boxesIntersect(box1, box2) | (BETA) Returns if two Box es intersect. |
collectCollisionBoxesAndFeatures(map, layerId) | (BETA) Collects collision boxes on a given Mapbox map layer. |
Interface | Description |
---|---|
Box | (BETA) Box in the screen coordinate. |
FeatureBox | (BETA) Box with feature information. |