GithubHelp home page GithubHelp logo

kartena / leaflet.editablehandlers Goto Github PK

View Code? Open in Web Editor NEW
46.0 46.0 24.0 543 KB

Tools that help to edit shapes. For instance a circle

License: BSD 2-Clause "Simplified" License

CSS 5.38% JavaScript 94.62%

leaflet.editablehandlers's People

Contributors

aratcliffe avatar dgarciach avatar keyjote avatar mattiasb avatar tonyc avatar xnzac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaflet.editablehandlers's Issues

Disable editing?

Is there a way to turn off the editing? I would like to have editing turned on and off by another control.

TypeError in Leaflet 0.6.2 after distance layer added with MeasuringTool

I modified the packaged example, measuring-tool.html, to use Leaflet 0.6.2 instead of the packaged version. This results in a TypeError when completing a distance measurement, after the PopUp appears.

Uncaught TypeError: Object [object Object] has no method 'fire' leaflet-src.js:3809
L.Popup.L.Class.extend.onAdd leaflet-src.js:3809
L.Map.L.Class.extend._layerAdd leaflet-src.js:2246
L.Map.L.Class.extend.addLayer leaflet-src.js:1714
L.MeasuringTool.L.Class.extend._onMapClick L.MeasuringTool.js:94
L.Mixin.Events.fireEvent leaflet-src.js:473
L.Map.L.Class.extend._fireMouseEvent leaflet-src.js:2215
L.Map.L.Class.extend._onMouseClick leaflet-src.js:2194
handler

This is a nice library, and I'd like to use it with 0.6.2 (or later)!

Custom Distance for the Measuring Tool

Hey,

I realise this plugin has not been updated in a while, but I hope I can ask a question.

I am using Leaflet for a game map and wondering if there is there any way of defining a custom distance?

The map I am using is 2km x 2km.

Hope to hear from anybody!

Thank you.

L.CircleEditor '_leaflet_id' undefined error with leaflet master branch (0.8-dev)

Hi there

We've recently had to upgrade to the latest Leaflet master branch due to better Mapbox support, among other reasons. Leaflet master seems to have had many internal changes and has caused L.CircleEditor to throw an error:

Uncaught TypeError: Cannot read property '_leaflet_id' of undefined 
L.Util.stamp leaflet-0-8-dev.js:81
L.Evented.L.Class.extend._on leaflet-0-8-dev.js:399

Here's a jsfiddle on it: http://jsfiddle.net/dinglixiang/sXh5k/24/

It's pointing to the latest build of Leaflet master branch at our server.

Could you kindly take a look and advise on what the issue might be? Much thanks.

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.