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 has been 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
The text was updated successfully, but these errors were encountered:
@Charmatzis , thanks a lot. that solved my 2nd questions.
Would you please update the react-leaflet from 1.0.1 to 1.1.0 in package.json, the api has a sight change so the examples didn't work.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I used this lib and run the example demo:
the map dispalys successfully, but When I upload the sample .zip, the error shows in developer console.
It seems to be the problem with the change
react-leaflet
api, would you please updatereact-leaflet-shapefile
toreact-leaflet
v1.1.0 or later.thanks
The text was updated successfully, but these errors were encountered: