Skip to main content

All Questions

0 votes
0 answers
23 views

How can i pass in coords to draw the correct shape on an IMAGE?

can I pass actual x / y cords to Leaflet.js to draw a shape? - I have tried using actual cords and the shape is nothing like I expect - also SetView cords can I pass them here too ? Code: var map = L....
Tony Blaikie's user avatar
0 votes
1 answer
60 views

Trouble loading markers inside a polygon using Leaflet.js, FreeDraw, and Laravel

I use Leaflet.js, FreeDraw, and Laravel to create a real estate system. The functionality I am trying to set up is that when the user draws a polygon on the map, it should trigger an API call and only ...
Daniel el khal's user avatar
0 votes
0 answers
20 views

leaflet (angular) dosn't show overlay-pane

I have the next map with leaflet: private initializeMap(): void { let ubicacion = this.obtenerUbicacionActual(); const center: LatLng = latLng(ubicacion[0], ubicacion[1]); // where i am ...
user2315402's user avatar
0 votes
0 answers
44 views

how to add new polygon layers to already drawn ones

how to add new polygons to an existing layer, so as not to completely redraw, but only add new ones? the current code completely redraws the entire layer, but it is necessary for new zones to be added ...
Александр Плетнев's user avatar
0 votes
1 answer
104 views

Leaflet: Error while trying to get a GeoJSON from multipolygon Layer

The issue is this one: I successfully could implmement a MultiPolygon Layer in Leaflet, but I'm getting an error while trying to convert it to a GeoJSON object. My code is this one: let ...
Leandro Caplan's user avatar
1 vote
1 answer
353 views

Leaflet Draw: Attempting to erase a drawn shape, by clicking outside of it after drawing it

I'm developing a Laravel app with Leaflet, and trying to implement some funcionalities with the Leaflet Draw plugin. What I'm trying to do is this: Drawing a polygon, rectangle or circle with Leaflet ...
Leandro Caplan's user avatar
0 votes
1 answer
324 views

Prevent draggable circle using Leaflet circle and leaflet-draw library

I have a circle that I add to the map when you click on a specific point (centroid of that circle will be where the point is) and you can edit the circle, meaning you can resize it using the gripper ...
fairlyMinty's user avatar
0 votes
0 answers
93 views

Leaflet. Does not put a dot exactly where you click

<div class="leaflet-marker-icon leaflet-div-icon leaflet-editing-icon leaflet-div-icon-wh leaflet-zoom-animated leaflet-interactive leaflet-marker-draggable" tabindex="0" style=&...
Ahmet Resul KURU's user avatar
0 votes
3 answers
268 views

How to use L.canvas to draw a fluctuating circle

I am a back-end programmer who is using leaflet for the first time. I don’t know much about js animation steps. I want to use L.canvas to draw a dynamic circle, just like the picture below. Specify ...
Redamancy-qian's user avatar
1 vote
1 answer
963 views

Leaflet - allow user to draw a Polyline with only two points?

Leaflet draw allows users to draw lines on a map. There's an example at https://leaflet.github.io/Leaflet.draw/docs/examples/full.html I want my users to be able to draw lines consisting of only two ...
Terence Eden's user avatar
  • 14.2k
0 votes
0 answers
483 views

Leaflet Draw - Editing Polygon: Editing does not behave right

i am currently working on a project where a user should be able to edit zones (= polygons). I have created a class Zone which extends L.Polygon so I can create zones and add them to the map. The ...
Luca's user avatar
  • 57
3 votes
0 answers
358 views

Leaflet Draw - Editing Polygon: changing Polygon points does not reset Polygon edit points

i am currently working on a functionality, where a user can create and edit zones (polygons). Therefore I am using a class Zone which extends L.Polygon. To edit a specific instance of Zone I am using ...
Luca's user avatar
  • 57
1 vote
0 answers
349 views

Find Point in polygon javascript

I found this solution in php : Find Point in polygon PHP I change it in javascript if (is_in_polygon(points_polygon, vertices_x, vertices_y, longitude_x, latitude_y)){ console.log("Is in ...
alice 's user avatar
  • 41
1 vote
1 answer
1k views

Leaflet edit GeoJson Data

I made a code below for creating shapes with some informations. I can edit thoose informations until my map is open. But after update geojson by "Export features to local file" and page ...
Mateusz Kruk's user avatar
0 votes
1 answer
877 views

Leaflet Draw how to hide click cancel tooltip

I'm using Leaflet Draw to edit a map, but whenever I go into edit mode, I get a rather large tooltip attached to the mouse pointer (see screenshot), which obscures quite a bit of the map and prevents ...
AlphaBeta's user avatar
  • 1,033

15 30 50 per page
1
2 3 4 5
11