Hello, are you find something like this? when mouse hover the point it will show some notifictaion such as latitude, longitude? Here I write a app for you refer, pls import it to you app and check the detail.
Thank you for the links, unfortunately I could not find in them an example of what I am looking for.
Thanks for the example you sent, using Notifications. I built a simple JS Code to show a 'Hello there' when a point on the map is selected. The OnPointSelected action is not firing the JS. The JS Code itself works; I can see the notification when I do a 'Run' or 'Preview' on the JS directly.
Any guidance on why the Mapbox not firing the JS upon selecting a point will be greatly appreciated.
I got to the root of the problem, but not sure how to solve it.
The Mapbox map is not reacting to the mouse when the mouse hovers over, or clicks a point (I can detect that from watching the debug tool at bottom right hand corner in Edit mode).
I would appreciate any headsup about where I should be looking for what is causing this non-reactivity.
Hello again,
The points I have on the map are generated on the fly via a transformer.
The transformer generates a GeoJSON from data in a table which has lat/long coordinates.
My Application thus uses the GeoJSON box rather than the Points box to render points on the map.
So I do not have points in the 'Points' box because I may have tens of thousands of points.
When I placed a tentative point in the 'Points' box, mapbox component reacts correctly to the mouse selections/hovers. But not the points generated by the transormer that are sitting next to the selectable point.
So it appears to me that the Mapbox component will respond to selection of points (or hovering over them) in the map only if the points were specified in the 'Points' box.
Now, is that a limitation of the Mapbox component, a bug or am I missing something?
You could try creating your own custom React component if you need extended functionality
When you mention that you don't have points in the 'Points' box because you may have tens of thousands of points, I'm curious if you already tried passing the transformer points to this field? Did the component crash? Is there a formatting issue? I tested this with 8k objects in the Points array & it did show them all on the map (although it wasn't the most performant!)