Is it possible to get the coordinates of the rectangle on mouseClick, so I have all the corners of the rectangle?...
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'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...
I set up a custom button to initiate drawing as per How to click a button and start a new polygon without using the Leaflet.draw UI and How to initiate the draw function without toolbar?. However, once someone clicks on this custom button, I can'...
I am using leaflet.draw lib. and trying to built drawing toolbar on the simple image, it displaying fine but its action doesn't works.  <div id='image-map'></div>   and my script is   <script> url = 'images/leafletTe...
I am using leaflet (v. 1.0.2) map with the leaflet.draw (v. 0.2) plugin. I edited control buttons and now when I am trying to add polygon with leaflet.draw and click zoom button it adds the point on map.  How can I disable it?  HTML for the control b...
I know there's a way for disabling just the “delete” button in leaflet-draw's edit toolbar.  I'm wondering if there is a complementary setting, i.e.: disabling the edit button but keeping active the delete button (the one with the tra...
i have a simple .json file and i draw it to map using leaflet, now it should be editable using leaflet.draw toolbar,and when ever we edit (marker,polygon..) its json file should be update. I don't have clue to implement it....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.