Linked Questions

3 votes
1 answer
8k 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 ...
Almidas's user avatar
  • 131
1 vote
1 answer
318 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 ...
bcman's user avatar
  • 85
0 votes
0 answers
69 views

Reading GeoJSON from external file in Leaflet [duplicate]

I found the following script on the web but I don't know how to change the way to read JSON code. In the script the JSON code is included in a var called sitec but I need to read that code from an ...
Mdev2023it's user avatar
29 votes
3 answers
52k 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 ...
Mike Weber's user avatar
9 votes
2 answers
20k 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 ...
Ryan Garnett's user avatar
  • 9,479
4 votes
1 answer
9k 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 ...
Rich's user avatar
  • 189
2 votes
1 answer
5k 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=...
Jay Gray's user avatar
  • 123
1 vote
2 answers
3k 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 ...
RG70's user avatar
  • 31
1 vote
1 answer
4k 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 ...
Supermarmotte's user avatar
0 votes
1 answer
4k 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 ...
Enviro's user avatar
  • 105
1 vote
2 answers
1k 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 ...
Kyouma's user avatar
  • 11
2 votes
2 answers
2k views

How to work with GeoJSON, Leaflet and pixel coordinates?

I'm a noob trying to piece together a - as I thought - simple thing: A Leaflet map based on a raster picture with markers coming from a GeoJSON file. As this is a fictional map, I use the CRS.Simple ...
Merion's user avatar
  • 171
2 votes
2 answers
2k 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 ....
Fezofchekov's user avatar
3 votes
1 answer
2k 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 ...
KullideDev's user avatar
0 votes
0 answers
609 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 ...
M-Rick's user avatar
  • 476

15 30 50 per page