This is an exercise to help learn how to use Git in the context of mapping.
GeoJSON is a flavour of JSON (Javascript Object Notation) that is used for denoting geography on the web.
In your command line, type in git clone https://github.com/brianbancroft/leaflet-git-exercise.git
and you'll be able load and edit the GeoJSON.
Bear with me. Generally, the best practice when running a web page is to do it on a virtual server.
This doesn't mean you have to purchase any special equipment, but there is some downloading to do. There are two really easy ways to pull this off:
- Download Python and run
python -m SimpleHTTPServer 3000
in the command line while you're in the right directory, then type inlocalhost:3000
in your web browser address bar- (if you already have python, then you can skip the download)
- Download NodeJS,
- Download Node Package Manager (NPM),
- In the command line, type in
npm install -g http-server
; then, - Then type in
serve
in the command line (in the proper directory) andlocalhost:8080
in the address bar
You don't have to reset either server when you've modified the files in the directory. Just refresh the browser!