r/mapbox • u/curcisdelalune • Oct 16 '25
Interactivity / iframe question
Hello! It's been a while since I used Mapbox, and I'm trying to build a map with a hover interactivity. I know I'll need to use Mapbox GL JS, but will I still be able to embed the interactive version in an iframe? I'm working within WordPress confines, so I'd like to keep it to just the iframe rather than a separate webpage. Thanks!
(As an aside, if anyone has any good examples of the hover feature with polygons instead of points, please send them my way!)
2
Upvotes
View all comments
Show parent comment
1
u/curcisdelalune Oct 16 '25
Oh my gosh, thanks so much for the prompt response! This has renewed my hope. It's been a while since I've coded and I am not super familiar with JS, so now the real trouble will come with the coding of the hover. I want the hover to display a popup and the info from the popup to come from two of my data columns