We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am try to add Leaflet layer from well know text(wkt). I found it does not include EditableMixin cause that layer.enableEdit is not a function error.
Leaflet.Editable/src/Leaflet.Editable.js
Lines 1917 to 1938 in 6bf3b5a
The text was updated successfully, but these errors were encountered:
Make sure you are importing leaflet-editable AFTER leaflet & react-leaflet. This import augments the leaflet module with the editable fields.
leaflet-editable
leaflet
react-leaflet
import { ... } from "leaflet"; import { ... } from "react-leaflet"; import "leaflet-editable"; //Imports the augmented Leaflet module
Ref: https://stackoverflow.com/questions/40136890/this-props-enableedit-is-not-a-function-error-while-executing-function/78531060#78531060
Sorry, something went wrong.
No branches or pull requests
I am try to add Leaflet layer from well know text(wkt).
I found it does not include EditableMixin cause that layer.enableEdit is not a function error.
Leaflet.Editable/src/Leaflet.Editable.js
Lines 1917 to 1938 in 6bf3b5a
How can I use enableEdit method with layer class?
Sample code:http://jsfiddle.net/Lhq0ance/8
The text was updated successfully, but these errors were encountered: