Skip to main content

Questions tagged [leaflet.draw]

Vector drawing and editing plugin for Leaflet

leaflet.draw
0 votes
1 answer
1k views

Leaflet click to edit layer

i have polyline featuregroup on map and i want to edit layers on click. if (layer instanceof L.Polyline) { const style = { color: InvestmentConstants.colors[$ctrl....
Deniz Firat's user avatar
0 votes
1 answer
312 views

how to use "leaflet-buffer" in react-leaflet?

I want to buffer the shapes I drew on the react-leaflet. But I can't find any npm library to react like "leaflet-buffer". Please help me.
nOybek's user avatar
  • 405
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
2 votes
1 answer
945 views

How to get polyline coordinates React-Leaft-Draw plugin?

I use this plugin to draw lines on Leaflet map in my project: https://github.com/alex3165/react-leaflet-draw I want to get coordinates (lat,long) of drawn polyline, when _onCreate or later. How could ...
TranceAddict's user avatar
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
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 ...
fairlyMinty's user avatar
1 vote
1 answer
1k views

Leaflet plugins in Angular project

I have an angular project (Angular 13) where I use leaflet. In the package.json file, I have: "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", "leaflet.heat&...
dogukan's user avatar
  • 433
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
0 votes
1 answer
227 views

leaflet poligon draw and kml load

new leaflet user here. basically I need to achieve 2 things: 1.draw a poligon (with my mouse) on a lealet map and be able to edit it 2. import/export kml data from KML into/outof a lealet map. I have ...
gkatz's user avatar
  • 123
3 votes
2 answers
835 views

the problem with leaflet and leaflet draw vue leaflet.draw.js?20d6:8 Uncaught TypeError: Cannot read properties of undefined (reading 'length')

mounted() { this.initMap(); }, methods: { initMap() { this.map = L.map('mapContainer').setView([48.856663, 2.351556], 12); this.tileLayer = L.tileLayer( "https://api.mapbox.com/styles/...
DKasane's user avatar
  • 51
0 votes
1 answer
432 views

Leaftlet- Draw Polyline or Draw Ploygon not working

I have following script to add Dynamically Polylines using latlang points which was saved in user previous session. Script is executing without any error but Polylines are not drawing on the map. ...
zaheer ahmad's user avatar
0 votes
1 answer
243 views

Leaflet Draw - Remove marker without save confirm

I have a map with draw controls to create, edit and remove markers. All works fine, but I would like to remove the marker just with one click... without save confirm. I haven't found any posts ...
Francesco G.'s user avatar
0 votes
1 answer
1k views

Leaftlet: Adding feature overlay to control, dynamically

I need to add a FeatureGroup to the overlays list. I do add some overlays when instantiating the Leaflet map, but I now need to append a FeatureGroup dynamically, ie. based on some run time conditions....
Antonio's user avatar
  • 47
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'...
unfamousfox's user avatar

15 30 50 per page
1 2
3
4 5
23