Is it possible to get the coordinates of the rectangle on mouseClick, so I have all the corners of the rectangle?...
I am using react leaflet draw for drawing polygons and circles.  But when I chose edit polygon there is no drag handler for a move and resize.    How to solve this issue if any one have the same?  This is code                <Map...
How can I remove the "clear all" action from the delete button in the leaflet-draw edit toolbar?  I know you can remove the whole delete button but still need to remove individual items. Basically looking for a way to prevent the user from de...
I have an issue, in my leaflet map I've created a triangle from polygon:  var polygon = L.polygon([      [parseFloat(decimal_lat),parseFloat(decimal_lon)],      [parseFloat(decimal_lat) + 1, parseFloat(decimal_lon) - 1],      [parseFloat(decimal_...
Problem  I'm using leaflet draw for my application, and I have the 'remove' button active. The remove button has three options:   Save Cancel Clear All   I want function foo() to be called if the user clicks Save, however, I want function...
What is the recommandation to display a large amount of markers (around 100) on a leaflet Map? Is it better to display markers using a PNG image or a base64 image for the marker icon?  I didn't find anything in the leaflet Doc:  https://leafletjs...
Please help!! I know I'm missing something very simple but I'm new to all this and I read lots of different post and tutorial and can't get whats wrong.  I initiate a new project on Ubuntu 14.04 Navigate to the folder I want my app to be....
I am using leaflet and leaflet-draw on a page that I'm working on. I want to use my own off-map buttons instead of the classic leaflet-draw controls that are on the map. I can't find an example of how this is done or if it's even possible...
I'm trying to change the color for my polygon after I change the baselayer. I've used setDrawingOptions but it is not working...  When I log the object before and after the setDrawingOptions it changes. But I don't see the change on the a...
I am using Leaflet and Leaflet.draw to create a map.  When I draw a rectangle on the map (as a user), the following code writes out the LatLng bounds of the rectangle.      // add the newly drawn items to a layer     map.on('draw:created', fu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.