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
Hi,
thanks for your lib,
I wonder what is the best way to to interact with vector layers, for now I use ref in the component that contains the map on the layers to access leafletElement to be able to do :
I could compute the bounds but it would duplicate the complexity already handled by leaflet.
Or maybe should I subclass the Circle component, and make it a "connected component" that handle it himself.
Any idea ?
Thanks.
The text was updated successfully, but these errors were encountered:
It really depends on your use case, if you're using Flux you would likely have the properties of your circle set in a store, so it would make sense to update the map based on these values as well.
If your map layers are your sources of truth, your solution seems good.
Hi,
thanks for your lib,
I wonder what is the best way to to interact with vector layers, for now I use ref in the component that contains the map on the layers to access leafletElement to be able to do :
I could compute the bounds but it would duplicate the complexity already handled by leaflet.
Or maybe should I subclass the Circle component, and make it a "connected component" that handle it himself.
Any idea ?
Thanks.
The text was updated successfully, but these errors were encountered: