Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

5 questions with no upvoted or accepted answers
2 votes
0 answers
406 views

Load large GeoJson files on demand on a leaflet map (checkboxes)

I have heavy Geojson files to display on a leaflet map. Because they are heavy, I would like them to be loaded only if the user checks a specific box on the map related to each of these Geojson files. ...
Paul Noon's user avatar
  • 686
0 votes
1 answer
878 views

get json data from a ajax request

I am pretty new to JSON and ajax and don't know, how to get the JSON data from my request? At the moment I have got two forms. One is for the search(a address) and the other one is for validating the ...
c00L's user avatar
  • 609
0 votes
1 answer
2k views

Leaflet. How I can get JSON marker property by Latitude and Longitude?

I have my custom 'latitude' and 'longitude' variable. var custom_loc = [50.34434, 63.23442] And also I have JSON data with points in GeoJSON format. { "type": "Feature", "geometry": { "...
T.Abdullaev's user avatar
0 votes
1 answer
335 views

Create an interactive map leaflet-ajax

In order to create an interactive map consisting of several layers I use the plugin leaflet-ajax with downloading of the files. geojson. When you direct at the object of the layer, the attribute ...
dimaolin's user avatar
0 votes
0 answers
89 views

What is the best way to load my own layer from database using leaflet?

I'm using leaflet and osm, but i need to load my own layer on the map. I've added some function on map moveend event that uses ajax, loads layer and adds it on to the map. But when i move the map e.g. ...
Taras Boychuk's user avatar