chugcup / leaflet.draw Goto Github PK
View Code? Open in Web Editor NEWThis project forked from leaflet/leaflet.draw
Vector drawing and editing plugin for Leaflet
License: MIT License
This project forked from leaflet/leaflet.draw
Vector drawing and editing plugin for Leaflet
License: MIT License
When editing a Polygon/Polyline that is marked allowIntersection=false
if you violate the intersection markers when editing, the map will lock up (with no error given). This only happens when editing a poly object (not when drawing a new one).
This appears to be an issue with event handlers on the map. One thing to note is that I confirmed this bug was introduced in the Leaflet 1.0.0-rc2 release candidate; it does not appear to happen in the 1.0.0-beta or 1.0.0-rc1 releases.
During editing, if a Poly marker is being dragged (whenallowIntersection
is false) and the marker intersects itself, the handler will call _onMarkerClick
which will simulate clicking the marker. This will remove the marker from the polygon instead of reverting back to its original position (which is the more user-friendly option).
Leaflet.draw/src/edit/handler/Edit.Poly.js
Line 270 in eb17e63
The comments in the source indicate the marker is reverted to its original position, but its a lie.
Hi,
First thanks for the example with the compatibility with leaflet RC3.
But do you have some example with popup implementation?
Thanks
Scenario:
Set prefer canvas with L_PREFER_CANVAS = true
.
Map initialized with preferCanvas: true
Drawed a poyline.
Drawed poyline edited.
Bug: If you edit a layer, then the dashed line still there after save or cancel.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.