I am trying to use leaflet's edit function on polygons that I loaded from my database. When I click on leaflet's edit button I get the error Cannot read property 'enable' of undefined  This thread describes a similar problem, and user...
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...
I have a bunch of polygons which are stored in a database. I would like to add them to the map in such a way that they can be edited using the leaflet-draw toolbar. Although, now the polygons get added to the map, I am unable edit them.  I think this...
I have made a map using the Leaflet Draw plugin which allows the user to download their drawn items. These drawn items are exported as GeoJSON using the following code from here:  document.getElementById('export').onclick = function(e) {...
I am using Leaflet and Leaflet.Draw, and I am letting the user from my code to draw polygon (NOT using the Leaflet Draw Controls).  While the user is drawing the polygon I need to change the color of its first vertex, for example: green, so that user...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.