Replies: 1 comment
-
UpdateAfter some troubleshooting, I’ve discovered that this behavior is determined by the projection system of the map.
SummaryIf you need precise 3D hovering, ensure your map is using a planar projection. While it would be great for the globe projection to support 3D raycasting in the same way, I’m posting this here in case others run into the same confusion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m working with 3D extrusions in
mapgland noticed a discrepancy in how hover effects are triggered between two different apps. I’m trying to understand what controls this behavior so I can implement it consistently.The Issue
In my current application, the hover highlight seems to trigger based on the 2D base (footprint) of the object rather than the 3D volume. If I hover over the top of a tall building, the highlight doesn't trigger unless my cursor is over the ground coordinates where the building sits.
Comparison
Questions
add_fill_extrusion_layer()or the hover effect settings?I’ve been referencing this gist for comparison. Any insight into the settings required to achieve the direct 3D hover effect would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions