All Questions
Tagged with leaflet.draw ngx-leaflet
7
questions
0
votes
1
answer
229
views
How can I show the polygon coordinates by popup in Angular?
here is the function of drawing polygon in leaflet map.
onDrawCreated(e: any) {
const { layerType, layer } = e;
if (layerType === "polygon") {
const ...
0
votes
0
answers
471
views
Edit and Delete doesn't work for Angular Leaflet
I am trying to edit and delete the shapes that I draw on the leaflet map. However, when I active the edit or draw, nothing happens and I am unable to edit the shape. I am currently importing leaflet ...
5
votes
1
answer
5k
views
ngx-leaflet-draw: Importing module which does not have a ɵmod property
Importing LeafletDrawModule which does not have a ɵmod property
I am seeing this error during my unit testing(jest).
The code works fine when I run the ng application. Leaflet draw function works ...
1
vote
1
answer
2k
views
Leaflet draw event "draw:deleted" not deleting layer
Please note that i am using @asymmetrik/ngx-leaflet-draw for Angular.
I'm configuring a map where the user can draw either rectangles or polygons. I then save these to a layerGroup based on the ...
7
votes
3
answers
4k
views
Leaflet Draw on rectangle draw it throws error
I'm using leaflet + leaflet-draw + @ngx-leaflet + @ngx-leaflet-draw in an Angular application.
I've tried everything, versions change, importing the modules .forRoot() and not, adding the js files ...
1
vote
1
answer
2k
views
How to create custom draw button for ngx-leaflet with ngx-leaflet-draw
I want to create a custom button, which enables the Polyline drawer on click. it's similar to How to click a button and start a new polygon without using the Leaflet.draw UI, but I want to do that ...
0
votes
1
answer
997
views
How do I change the default cursor with ngx-leaflet?
I tried to change to cursor to achieve a fluid integration with leaflet draw shown in this example.
https://leaflet.github.io/Leaflet.draw/docs/examples/popup.html
When the cursor is over the image ...