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
{{ message }}
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
git clone https://github.com/Charmatzis/react-leaflet-shapefile.git
npm install
npm run example
the map dispalys successfully, but When I upload the sample .zip, the error shows in developer console.
Uncaught Error: createLeafletElement() must be implemented
at ShapeFile.createLeafletElement (MapLayer.js:54)
at ShapeFile.componentWillMount (MapLayer.js:66)
at ShapeFile.componentWillMount (ShapeFile.js:12)
at ReactCompositeComponent.js:348
at measureLifeCyclePerf (ReactCompositeComponent.js:75)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:347)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:258)
at Object.mountComponent (ReactReconciler.js:46)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:371)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:258)
It seems to be the problem with the change react-leaflet api, would you please update react-leaflet-shapefile to react-leafletv1.1.0 or later.
thanks