Closed HarborneD closed 2 years ago
I have the same problem: https://codesandbox.io/s/trusting-newton-8el09
Edit: Made it work here using react-leaflet 2.8.0
No react-lefaletv3 is not suported yet but it will be
No react-lefaletv3 is not suported yet but it will be
It's getting late
Feel free to open a PR 😃 I had to much work lately
This comes from the dependency use-leaflet
. I've opened an issue there vadzim/use-leaflet#109 but last activity on the repo was ~1 year ago 😕
Oh, guys... I didn't actually notice someone uses my module... Thanks, gonna fix it :)
Hi, yes it cames from use-leaflet, but react-leaflet has a internal hook on v3 so it does not make sense to keep using another lib, for now, react-leaflet-pixi-overlay works great and it was designed on react-leaflet v2, i will try this week to open a PR for v3 support guys
https://react-leaflet.js.org/docs/api-map/#usemap
any update on this? would be very handy to have, otherwise I might try to figure it out
this PR removes use-leaflet lib to reduce deps and now will rework no react leaflet v3 https://github.com/knapcio/react-leaflet-pixi-overlay/pull/17
React leaflet v3 updated!!
https://github.com/knapcio/react-leaflet-pixi-overlay/pull/18
thanks for this hugo!
could you give an example of how to use onClick in the marker to open the popup?
could you give an example of how to use onClick in the marker to open the popup?
hi, please try the readme docs, if it does not work, open a new issue please
As far as I know @hugobarragon's PRs resolved the issue. Closing :)
I'm getting
_reactLeaflet.useLeaflet is not a function
when using<PixiOverlay markers={markers} />
I notice that the example uses
Many thanks!