All Questions
Tagged with leaflet.draw geojson
19
questions
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 ...
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 ...
0
votes
1
answer
365
views
How to edit only selected feature from geojson using leaflet geoman
I have a GeoJson having 40,000 features as MultiPolygon.Can anyone guide me that how can i select individual polygon from it and edit that selected one. Right now when I click edit in Leaflet-Geoman ...
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 ...
0
votes
1
answer
400
views
leaflet to geoJSON with angular, download not triggered
I need to implement a button that download the polygon (or whatever shape) into a geojson file but the download isn't triggered. (trying with 2 different functions but both not working) i actually don'...
0
votes
1
answer
583
views
Leaflet draw delete features with property
Is it possible to delete multiple features from geojson at once by checking property value?
Using for example code below or using Leaflet draw?
function deleteArea() {
var layers = featureGroup....
2
votes
1
answer
588
views
How to place custom leaflet.draw shape programmatically?
I'd like to restore a custom L.Draw.Marker (L.Draw.Waypoint) from database, but when i try to initialize it, the result is not a proper layer, but simply the handler. How can i do this without using ...
0
votes
2
answers
3k
views
Leaflet Draw and Leaflet Snap with geojson polygon layers
I'm trying to enable snapping (using Leaflet Snap)in a Leaflet application I'm creating. I'm using Leaflet Draw. Existing layers are read in from a database in geojson. I add these to the guideLayers ...
5
votes
1
answer
7k
views
Leaflet.Draw saving data with GeoJson
map.addControl(new L.Control.Draw({
draw: {
polygon: false,
polyline: false,
rectangle: false,
circle: false
},
edit: {...
0
votes
0
answers
36
views
Best way to convert Leaflet Geojson layers to Leaflet rectangle vector [duplicate]
I am working on a Leaflet map application that allows users to draw shape layers and load shape layers from the backend. The users can add, edit and delete shape layers at will.
The issue arises ...
1
vote
1
answer
308
views
Geojson structure different when drawing Leaflet layer vs loading Leaflet layer
My web application has users drawing shapes with Leaflet.Draw control as well as loading shapes from geojson files. However, it seems like both methods generate different geojson objects.
When I load ...
1
vote
0
answers
331
views
Leaflet.draw: How to draw Octagon/Hexadecagon or other regular polygon?
I do not believe my question can be answered with a few lines of code here, but maybe someone has written an extension to Leaflet.draw which can be used for drawing a regular polygon in a similar way ...
4
votes
1
answer
4k
views
Leaflet.Draw - geoJSON to Kml
I have made a map using the Leaflet Draw plugin which allows the user to download their drawn items. These drawn items are exported as GeoJSON using the following code from here:
document....
1
vote
0
answers
871
views
Why L.polygon works in a way but not in another
Good day,
I am sorry if my question could be basic but I think I do have a problem to convert a string to an array.
I am trying to add a polygon to a map (or to a layer). I extracted some polygon ...
0
votes
1
answer
546
views
Move handlers not appears when editing polygon layer in leaflet-draw
I have a textarea that I copy a GeoJson into it and the map must show its shape. This is not a problem until I wanted this shape to be editable.
So I used below code to convert it to layer and add to ...