react-leaflet-curve
react-leaflet-curve copied to clipboard
Outdated build version?
Hi, first of all, thanks for this plugin.
I'm trying to use it with react-leaflet 2+ but it doesn't work without wrapping with withLeaflet, despite the fact that in the source it is already wrapped in the export. It is possible that the main file referenced in the package.json was not updated with the last build?
I can reproduce this problem.
Using <Curve> as suggested by the README gives this.props.leaflet is undefined error. I have to import { withLeaflet } from 'react-leaflet'; and wrap Curve manually.