iag-geo / bootleaf

An open-source version of IAG's Bootleaf fork
https://demo.bootleaf.xyz
MIT License
88 stars 65 forks source link

json not loading on trunk clone #22

Closed hardreddata closed 4 years ago

hardreddata commented 4 years ago
git clone https://github.com/iag-geo/bootleaf

and then opening index.html in a web browser complains about the theatres and the museums.

I suspect some online library has changed but don't know enough to troubleshoot. Earlier Bootleaf versions (admittedly the trunk doesn't change much) are also not behaving.

slead commented 4 years ago

Hi Russell,

You may need to check the permissions on the datafolder and its items. Verify that you can access the geojson in the browser. In my case this is accessed via:

http://localhost/demos/bootleaf/data/museums.geojson

If you get an error, check the permissions on the files, which should be in your web server's directory, not the file system. eg on Windows this will be c:/inetpub/wwwroot/bootleaf/data, and on a Mac it'll be /Library/WebServer/Documents/bootleaf/data. Does that help?

hardreddata commented 4 years ago

Thanks for the prompt response.

I found Bootleaf really useful accessing it on disk rather than accessing via hosting it as a webpage. I am fairly certain this used to work. Just opening up the index.html direct from the file explorer. I have encountered this on Windows 10 and Ubuntu linux.

If this isn't impacting anyone else I am happy to see the issue closed.

slead commented 4 years ago

It may work sometimes, but it's always better to use the web server where you can. This also simulates more closely how it'll appear if you do host your apps online.

Good luck, Steve