Closed MariosPalazis closed 3 years ago
@MariosPalazis list the versions you are using please
but your import should be as the documentacion show
import { DriftMarker } from "leaflet-drift-marker"
create a code sandobox link to replicate the bugm use the demo link to replicate
"core-js": "^3.9.1", "leaflet": "^1.7.1", "leaflet-drift-marker": "^1.0.3", "react": "^17.0.1", "react-dom": "^16.14.0", "react-leaflet": "^3.1.0", "react-leaflet-animated-marker": "^1.0.2",
I did it like this: import { DriftMarker } from "leaflet-drift-marker" ..same error
ok you are using react-leaflet new version 3.x its not supported as stated on documentation only previous non hooks version 2.x is supported or now
https://github.com/hugobarragon/leaflet-drift-marker/blob/master/README.md
This Repo will only create the leaflet pure class, to use with leaflet, and for other frameworks to use, such as react,vue,angular.... this wil
for react usage it will be created a react-leaflet-drift-marker that will integrate leaflet-drift-marker
with this we can split features and make bundle size smaller for every framework and user needs
react-leaflet-drift-marker v3 will support react-leaflet v3
I follow the demo instructions with react hooks but I got the error TypeError: Object prototype may only be an Object or null: undefined. Or some times couldnt read "lat". I attach some snippets