Commit graph

377 commits

Author SHA1 Message Date
Hugh Rundle fafbf5e6b3 fix fragility toggle
mapControl was declared as a const instead of a var, which prevented switchMode() from working properly.

This fixes that by using var rather than const, and also moves the Controls and initial layer declarations above switchMode() so we don't have to rely on hoisting to use variables declared later.

Fixes #16
2021-01-23 18:15:25 +11:00
Hugh Rundle 32c5ead71d
Merge pull request #17 from PaulSchulz/master
add details for Port Adelaide Enfield Library Service
2021-01-23 16:31:32 +11:00
Paul Schulz 1d43e10121 add details for Port Adelaide Enfield Library Service 2021-01-23 15:25:27 +10:30
Hugh Rundle 8dd718a618 remove reference to goglam talk
Turns out I won't be talking about white fragility mode after all.
2021-01-22 18:39:01 +11:00
Hugh Rundle 4c48c96e01 reduce opacity of overlays
The fines and loan period overlays were too opaque and made it hard to see what they were overlayed onto - especially in Queensland with the whacky coastal shire boundaries. Reduced to make things more transparent literally and figuratively.
2021-01-22 18:34:14 +11:00
Hugh Rundle 1f64423368 update filenames in data directory 2021-01-22 18:29:30 +11:00
Hugh Rundle f4942ccf2b remove unecessary js files
Instead of using js files we now pull the data in directly using fetch() from the website/data directory.
2021-01-22 18:16:39 +11:00
Hugh Rundle 51eb01eec5 udpate readme and contributing
- update to correct filepaths for licensing info in README
- add more detail in contributing.md
2021-01-22 18:04:46 +11:00
Hugh Rundle dd5b28ca1d remove old data directory 2021-01-20 09:35:29 +11:00
Hugh Rundle 0bd4b4892f restructure website for better data integration
Big commit here.
This moves the "data" directory inside the website, and then uses fetch to bring the csv and geoJSON files into the map instead of copy-pasting into JS files. Much cleaner and reduces steps from updating a CSV to updating the actual website. Now we simply need to git pull on the webserver (unless the updated data is for library services rather than library locations).

Also cleans up some styling.

Also removes my MapBox secrets from the Git repo whoops. These are now brought in via a secrets.js file that simply declares a constant. This file will not be visible in the repo.

Fixes #14
2021-01-20 09:28:43 +11:00
Hugh Rundle 93a357226d fix gitignore paths again 2021-01-20 09:12:09 +11:00
Hugh Rundle 578dfa09bc fix gitignore paths 2021-01-20 08:51:15 +11:00
Hugh Rundle 9e8e1581b2 ignore secrets 2021-01-20 08:49:43 +11:00
Hugh Rundle f9c6b9274d clean up variable declarations and indentation 2021-01-19 18:21:36 +11:00
Hugh Rundle 632534789d improve popups when clicking on libraries
Allows users to click on the location dots AND the 800m radius (location point is overlayed at long distances).
Also adds phone numbers to all popups and improves code readability.
Fixes #12
2021-01-19 08:17:22 +11:00
Hugh Rundle fca91746d4 remove redundant topojson file 2021-01-18 21:19:36 +11:00
Hugh Rundle a4f555fb0c update directories for cool links 2021-01-18 20:25:14 +11:00
Hugh Rundle 035c593c13 improve menu tabs
Menu tabs now appear consistently on all pages. The active page is colour-reversed and has no link.
Also improved the logo file.
2021-01-18 13:29:43 +11:00
Hugh Rundle 80ad14b14d update service and location data 2021-01-18 12:41:44 +11:00
Hugh Rundle 6469099278 move WFM button to top of map
Fixes #6
2021-01-18 10:46:01 +11:00
Hugh Rundle a3f4ae0964 update readme 2021-01-18 10:34:03 +11:00
Hugh Rundle c8c51b573b add contributing file
Fixes #5
2021-01-18 10:29:48 +11:00
Hugh Rundle 2fcb48c317 update web pages and boundaries file
- boundaries file has TitleCased names
- various updates to information pages
- styling improvements
- update README

Fixes #1
Fixes #2
Fixes #3
2021-01-18 10:27:17 +11:00
Hugh Rundle 95f603ef12 update website files
* update readme
* new TopoJSON file with initial capitalised names
* add python script for merging csv and geojson
* add and update various web pages
2021-01-17 22:38:39 +11:00
Hugh Rundle 3220ba6f08 fix formatting 2021-01-17 19:49:31 +11:00
Hugh Rundle 56e382922f update files 2021-01-17 19:47:25 +11:00
Hugh Rundle a966c55004 initial commit 2019-08-13 21:34:31 +10:00