Skip to main content

All Questions

2 votes
0 answers
405 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
2 answers
575 views

How to reset coordinates into an Ajax call after having initialized a map?

I inserted a map on my webpage by using the Leaflet library. What I want to do is to show a map zoomed on a specific region according to which city the user types into a text field. I firstly ...
franz1's user avatar
  • 341
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
1 vote
1 answer
1k views

Import geojson data to a leaflet map origanated from overpass turbo

I am not a native English speaker so please don't mind the mistakes ;) I want to make a map where you can find farm shops and milk vending machines for people that want to support their local farmers....
Stefan's user avatar
  • 69
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
334 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
2 votes
1 answer
6k views

AJAX refresh, setInterval timing and localhost crash

I am working on an app using Django, Leaflet, OSM and jQuery. The app displays a map with markers and a table with all the marker data (time, lat, lng). I want to automatically update the table and ...
essicajayc's user avatar