You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to add some UI interaction with the drawn circles? Like onclick or hover? I'm thinking about custom logic that could be added, like when you click somewhere and two or more circles overlap then you would get the positions in your event listener and can then create a popup which may match the position to some other data. A better way would probably be if an ID could be attached to each circle which could then alternatively be used in the event handler.
The text was updated successfully, but these errors were encountered:
No. The thing is that the circles are drawn on a canvas and are thus not objects.It would be super easy though to add an even handler that translates the mouse coordinates to lat lon and then finds the position in the quad tree. Feel free to send a pr and ask any questions about this.
I wonder how it compares in performance to just using CircleMarker or Circle on a LayerGroup, similar to https://github.com/mourner/Leaflet-Dotter which also uses a canvas. Obviously only for the case where noMask: true. Then bindPopup is available for example, although it probably use quite some memory for many circles.
Is there any way to add some UI interaction with the drawn circles? Like onclick or hover? I'm thinking about custom logic that could be added, like when you click somewhere and two or more circles overlap then you would get the positions in your event listener and can then create a popup which may match the position to some other data. A better way would probably be if an ID could be attached to each circle which could then alternatively be used in the event handler.
The text was updated successfully, but these errors were encountered: