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
By changing from v0.20.3 to v0.20.4 the onDrawStop event would fire just after the onDrawStart. Not allowing any shape to be drawn.
I found out that this can be negated by removing the shapeOptions : {} and drawError : {} parameters.
Following works with v0.20.3 and not with v0.20.4.
<EditControl ...code... draw={{ polyline: false, polygon: { metric: true, showArea: true, allowIntersection: false, // Restricts shapes to simple polygons drawError: { color: '#FF5733', // Color the shape will turn when intersects message: '<strong>Polygon!<strong> (allowIntersection: false)' // Message that will show when intersect }, shapeOptions: { color: '#BF9000' } }, circle: false, // Turns off this drawing tool rectangle: false, marker: false, circlemarker: false, }}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
By changing from v0.20.3 to v0.20.4 the onDrawStop event would fire just after the onDrawStart.
Not allowing any shape to be drawn.
I found out that this can be negated by removing the shapeOptions : {} and drawError : {} parameters.
Following works with v0.20.3 and not with v0.20.4.
The text was updated successfully, but these errors were encountered: