Timeline for Adding local GeoJSON files to Leaflet web page
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 10, 2019 at 12:46 | history | edited | TomazicM | CC BY-SA 4.0 |
Additional explanation.
|
Feb 9, 2019 at 21:14 | history | edited | TomazicM | CC BY-SA 4.0 |
Additional explanation.
|
Feb 9, 2019 at 19:07 | comment | added | TomazicM |
leaflet-ajax docs says: If you want to be able to load stuff from the file system (with appropriate custom flags set) set local to true. , so try with option local: true in ajax call definition.
|
|
Feb 9, 2019 at 18:50 | comment | added | PVar | The geojson file is just on my machine. Not hosted on a server or anything | |
Feb 9, 2019 at 18:36 | comment | added | TomazicM |
What about the second question? Is the file displayed if you refer to it directly in the browser: http://server/path/StratfordBoundary ?
|
|
Feb 9, 2019 at 18:23 | comment | added | PVar | I do have it in the same directory | |
Feb 9, 2019 at 18:17 | comment | added | TomazicM |
Do you have file named StratfordBoundary on home directory of your project on the server? Does your server allow loading files without file type?
|
|
Feb 9, 2019 at 18:13 | comment | added | PVar | So I just added that in and my data still won't load | |
Feb 9, 2019 at 17:55 | history | answered | TomazicM | CC BY-SA 4.0 |