Editing polygon after setLatLngs
See original GitHub issueWhen you set new lat/lngs on a polygon and enable editing after that, you can move the handles around, but the layer will not resize with it.
See: http://jsbin.com/hucapobizi/edit?html,js,output
This is the example modified with a setLatLngs
on the polygon.
- Leaflet version I’m using: 1.0.2
- Leaflet Draw version I’m using: 0.4.7
- Browser (with version) I’m using: Chrome/Firefox/IE11 tested
- OS/Platform (with version) I’m using: Linux+Windows
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Leaflet Draw - Editing Polygon: changing Polygon points does ...
i am currently working on a functionality, where a user can create and edit zones (polygons). Therefore I am using a class Zone...
Read more >FeatureGroup polygon and polyline cannot be edited with ...
If you want to edit your combined polygon that consists of two different styled polygons, you have to edit only one and then...
Read more >Continue sketching a feature—ArcGIS Pro | Documentation
On the Edit tab, in the Features group, click Modify · Expand Reshape and click Continue Feature · In the pane, click Active...
Read more >Documentation - a JavaScript library for interactive maps
Some of the Map methods which modify the zoom level take in an options parameter. This is a plain javascript object with the...
Read more >Edit Vector Polygon Layer - CGA Web Maps
Go to any POLYGON layer that you want to practice editing. ... Then, after saving those edits, begin editing the ADJACENT polygons, one...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had the same issue, quickest workaround I’ve found is, before starting the edit, to reset the edit plugin such as:
I’m still seeing this behaviour in Leaflet Draw 1.0.4.