Linked Questions

2
votes
1answer
6k views

Loading External geojson into leaflet [duplicate]

I have experience working in python but limited knowledge of Java Script. I need help loading in a external Geojson located on my computer into a leaflet map. I read that I need to use a technique ...
1
vote
1answer
252 views

mapbox geojson + leaflet + custom markers [duplicate]

In the geojson file the following can be found for a marker (coming from mapbox geojson) "marker-color":"#1087bf","marker-symbol":"monument"} I would like to find a solution so monument will be ...
24
votes
3answers
38k views

Converting GeoJSON to Python objects? [closed]

New to the site, and to geoJSON, and to python. My goal is to read in a file with geoJSON data, and use it to generate shapes to be used in an application that is using python scripting. Python ...
5
votes
1answer
10k views

Custom marker and properties from geoJSON in Leaflet

I am having some issues with two things in a Leaflet map 1) custom marker 2) pulling attributes from a geoJSON file and putting it in the pop-up. I should qualify things, I am really new to Leaflet ...
2
votes
1answer
4k views

Load external geojson file into leaflet map

Have studied How to load external GeoJSON file into Leaflet map but not getting desired result. My index.html looks like this: <!DOCTYPE html> <html> <head> <meta charset=...
0
votes
1answer
2k views

Geojson not displayed within leaflet

I made some more complex leaflets before, but here I'm stucked. You can find my geojson file here: https://gist.github.com/Supermarmotte/16e0466c9d17f4ab341b6fdb805bb849 It is displayed correctly and ...
1
vote
2answers
901 views

Load geojson files from a dropdown list

I would like to load geoJSON from a dropdown list. Everything i found was internal plugin for leaflet such as leaflet-geojson-list. I have a html dropdown list but I don't know how to link my geoJSON ...
0
votes
1answer
2k views

Leaflet L.geoJSON from a js variable geojson object not showing on map

I create a js geojson object variable in my code. I would like to then create a layer based on the geojson variable and add to the map. I have tested the geojson object (When I stringify the geojson ...
2
votes
1answer
678 views

Unable to use fillColor values from GeoJSON with Leaflet

I have a web page which fetches some remote GeoJSON and displays a combination of marker points, polygons and lines on my map. Within that JSON is the fillColor, fillOpacity, etc that I wish to use ...
2
votes
2answers
398 views

Loading .json files into Leaflet and filtering them [closed]

I am new to web development and Leaflet/GIS in general. I have a couple of shapefles, let's say they are roads.shp and utilities.shp. And let's say I have the means to convert these shape files into ....
0
votes
0answers
448 views

How to add GeoJSON layer with GraphHopper?

I have a GeoJSON file containing some POI that I would like to be able to display within a separate layer with GraphHopper. But after several tries and search over internet, i can't manage to get a ...
1
vote
2answers
140 views

GeoJSON does not appear on my Leaflet map

I'm a beginner in Leaflet and I need help to deal with GeoJSON files. I succeeded in creating a Leaflet basemap. I can add markers without troubles but I cannot manage to show a GeoJSON layer. Here ...
2
votes
1answer
130 views

Cannot get local GeoJSON file to load features on server hosted Leaflet map [duplicate]

The answers I have tried prior to asking this question: Loading external GeoJSON file into Leaflet map? Load external geojson file into leaflet map Issue in loading external geojson file into ...