Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

Uncaught Error createLeafletElement() must be implemented #1

@uptonking

Description

@uptonking

I used this lib and run the example demo:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions