Questions tagged [leaflet.pm]
5 questions
2
votes
2 answers
Cut holes in polygon with leaflet geoman
I'm using the fantastic "leaflet geoman" to draw and edit geometries, but having troubles understanding how the cutting tool works. How do I get the geometry of the layer that has been cut?
This is my code:
mymap.on('pm:create', function(e) { …

agh
- 107
- 1
- 12
2
votes
0 answers
How to make adjacent polygons align with the edited polygon in leaflet?
Is there any way in Leaflet to edit a shape file (from database) consisting of adjacent polygons in the same manner as in QGIS using the "Reshape feature"-tool in the Advanced Edit toolbar?
At the moment I'm using Leaflet.pm to edit. It works fine…

agh
- 107
- 1
- 12
2
votes
1 answer
leaflet.pm edit mode get new coordinates within shape
I'm using leaflet js to build a map with some pins https://leafletjs.com/ and I'm also allowing drawing of shapes, e.g. polygons, circles etc. I also these to be edited using a plugin called leaflet.pm https://github.com/codeofsumit/leaflet.pm.…

user0129e021939232
- 6,205
- 24
- 87
- 140
0
votes
1 answer
checking duplicate markers leaflet geoman
Im trying to check each geojson feature if it is a Marker. If it is I want to remove the placed layer then init drawing marker again.
If it is not the same position, I will just add it to the feature layer.
The problem is with eachLayer it always…

Henrik Maaland
- 210
- 2
- 14
0
votes
1 answer
How to add marker onto polygon layer using leaflet.pm?
Lines and polygons are added without problems, but when trying to add markers on top of a polygon layer ("lyrPoly"), it interprets that I want to click on the polygon (e.g. opens popup) instead of adding marker. How can I avoid this? I am using…

agh
- 107
- 1
- 12