Coder Social home page Coder Social logo

chugcup / leaflet.draw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leaflet/leaflet.draw

0.0 0.0 2.0 2.73 MB

Vector drawing and editing plugin for Leaflet

License: MIT License

JavaScript 93.88% HTML 2.02% Handlebars 3.97% Shell 0.13%

leaflet.draw's People

Contributors

ajbeaven avatar boeckmt avatar boris-arkenaar avatar brunob avatar chugcup avatar danzel avatar davenquinn avatar davidepastore avatar ddproxy avatar e-avidan avatar frankrowe avatar iirvine avatar jacobtoye avatar jameslmilner avatar jmkelly avatar jonnyscholes avatar justinmanley avatar koppelbakje avatar larkinscott avatar leplatrem avatar michaelguild13 avatar mourner avatar nexushoratio avatar northerneyes avatar riboher avatar starefossen avatar tmcw avatar wattnpapa avatar yohanboniface avatar zverik avatar

Watchers

 avatar  avatar

Forkers

sigh71 mrsnyder

leaflet.draw's Issues

On poly intersection during edit, revert marker to original position

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).

this._onMarkerClick(e); // Remove violating marker

The comments in the source indicate the marker is reverted to its original position, but its a lie.

Popup Example ?

Hi,

First thanks for the example with the compatibility with leaflet RC3.
But do you have some example with popup implementation?

Thanks

Map locks when polygon intersects during editing

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.

Dashed line still there after edit of canvas layer

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.