I am using a web application that uses geojson file to define point data - here is the application:
I would like to use the skeleton of the application to make my own maps, again keeping (different) point data in a geojson file. I typed in the json file myself, converted it into geojson with a python script, and confirmed with geojsonlint that the data are properly formatted.
Now the PROBLEM:
the geojson file I have put on my own website (just scp-ed it over). The application does not work any more. I have tried to google for an answer, but, to my surprise, could not find any answers, anywhere.
I figured the following: the original geojson file is here:
var bikeGeoJsonUrl = "https://opendata.arcgis.com/datasets/5fe9482a4ed34551a883355db0f41164_3.geojson";
When I try to load the above geojson file in the browser I get "this is geojson file, what would you like to do, open, save, etc"
My geojson file is on my website:
var bikeGeoJsonUrl = "https://enjoy-virginia.com/geojson/cville-bike-racks.geojson";
When I try to load it in the browser, it just loads in as a text file, so browser thinks it is just a text.
I found that I could actually use myjson.com site to store my text geojson file and open racks.html file with locations properly.
BUT: I would really want to know how is my geojson file on my website different in format from the way myjson.com is saving the same file?
I also remember a few months ago I had my geojson files stored on github and the applications worked fine, but it has now stopped working.