tag:blogger.com,1999:blog-279772059074318326.post422444242988854741..comments2023-12-30T11:14:38.564-08:00Comments on D3.js Tips and Tricks: Using the Leaflet.draw plugin for leaflet.jsD3 Noobhttp://www.blogger.com/profile/00927635217604611354noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-279772059074318326.post-66261496796277506872018-12-04T05:59:09.774-08:002018-12-04T05:59:09.774-08:00Great tutorial, you have saved me a lot of time.Great tutorial, you have saved me a lot of time.tollfreehttps://www.blogger.com/profile/01328004077286352166noreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-44315952170764183452018-05-03T07:05:48.434-07:002018-05-03T07:05:48.434-07:00Thanks for the advice! I have come pretty far sinc...Thanks for the advice! I have come pretty far since my original post and it's been an awesome experience. I can even export the drawn items as geoJSONs now which is exciting :) I really want these to be converted to .kml though but I am having no luck with the "tokml" plugin.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-42493170361941417722018-04-23T13:50:31.663-07:002018-04-23T13:50:31.663-07:00Cheers. I think that we're probably the victim...Cheers. I think that we're probably the victim of the various parts of the code examples being really old (over four years). If I go to a live example that I did a few years ago I can see the same result http://bl.ocks.org/d3noob/7730264. So there's good news and bad news. The good news is that if you're using the code examples correctly, it's not you, it's the code. The bad news is that it doesn't work :-(. The good news is that Leaflet continues to be totally awesome and if you go to this page there are a range of the latest leaflet plugins including some new draw ones http://leafletjs.com/plugins.html#edit-geometries. I can't make the promise that they will just work automagically, but have a play and don't be afraid of trying lots of different things before it works. Start simple till you get it going and then build from there. Good luck and thanks for the comment.D3noobhttps://www.blogger.com/profile/03091573479428198379noreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-27212310072696757152018-04-23T08:37:17.951-07:002018-04-23T08:37:17.951-07:00Hi. Great tutorial, I am really excited to try thi...Hi. Great tutorial, I am really excited to try this out. But I am really noob with Leaflet and when I use your sample code, my map doesn't have any drawing options? Just a zoom in and out.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-91345461082422412532016-06-16T11:28:59.860-07:002016-06-16T11:28:59.860-07:00sorry, I'm not sure. It's not something th...sorry, I'm not sure. It's not something that I've tried before.D3noobhttps://www.blogger.com/profile/03091573479428198379noreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-34451290648082789682016-06-06T23:02:53.554-07:002016-06-06T23:02:53.554-07:00How to get the lat n long value of selected polygo...How to get the lat n long value of selected polygonsangeethahttps://www.blogger.com/profile/03980640350728330101noreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-12621406661646843082015-10-02T21:06:43.054-07:002015-10-02T21:06:43.054-07:00Thanks - I found this page very helpful for gettin...Thanks - I found this page very helpful for getting the leaflet.draw controls set up. Sometimes the basics are deemed so "simple" that they get glossed over elsewhere!Maptastichttps://www.blogger.com/profile/14463206618134549893noreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-65981524617793113712014-12-10T08:47:39.122-08:002014-12-10T08:47:39.122-08:00Hi Damian, That sort of function is a little more ...Hi Damian, That sort of function is a little more complex than I have explained in any of my books so far. However, the way I learned how to do it was simply an extension of the chapter on using MySQL in D3 Tips and Tricks (https://leanpub.com/D3-Tips-and-Tricks). The only problem is that it will require a bit of a learning curve on your part that I don't have examples for sorry. If it's any consolation that is an idea that would make a great new section for the book. Thanks for the question and good luck.D3noobhttps://www.blogger.com/profile/03091573479428198379noreply@blogger.comtag:blogger.com,1999:blog-279772059074318326.post-68111419332080595362014-12-10T05:04:56.691-08:002014-12-10T05:04:56.691-08:00" Leaflet.draw is less of an endpoint, than a..." Leaflet.draw is less of an endpoint, than an enabler of additional functionality. I say this because while it gives us the ability to draw to our hearts content on a map, it also provides the framework to take those drawn objects and push them to a database or similar (which we won’t cover in this overview sorry)."<br /><br />I would truly appreciate a link where i can find more information on how to push objects to database or json. thank youDamiannoreply@blogger.com