All Questions
Tagged with leaflet.draw php
6
questions
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 ...
0
votes
1
answer
314
views
leaflet.draw: check there is an existing layer
I have this mousemove function:
$("#mapContainer").on("mousemove", "#colorpicker"+mapNo, function(event){
//do something here
//layer.setStyle({color: color, fillColor: color});
...
1
vote
0
answers
357
views
Leaflet.draw a circle error: Cannot read property 'length' of null
I use leaflet.draw for creating shapes(geozone) in the map and when i draw a circle, i'm getting this error Uncaught TypeError: Cannot read property 'length' of null since a circle has no length and i'...
0
votes
1
answer
419
views
Passing data from one js to another js
I have two js: (1st) is where i can add the map and where i can click a button and draw shapes(geozone) and (2nd) is where i can change color and opacity of the shapes using colorpicker and ...
0
votes
2
answers
2k
views
Writing JavaScript code using PHP echo statements (for leaflet map points)
I'm trying to create map points in Leaflet, which uses JavaScript to write points, for example:
L.marker([39.0865039, -9.2636987], {icon: tree3}).addTo(map)
.bindPopup('<a class="speciallink&...
0
votes
1
answer
520
views
Identifying the polygon to delete
I would like to know how I can give (and retrieve) an ID to a polygon in leaflet(.draw). I need this because I want to be able to tell the database which polygon to delete/edit.
Thanks in advance
...