Adds a layer to view the library software for each library service.
Each software system is colour-coded.
Adds the ILS to the infobox on hover and the popup on select.
- remove overlays on small screens
- minimise control on small screens
- add popup on zooming to area (since touchscreen devices have no 'hover')
- fix navigation menu for small screens
- add footer with licensing info
- fix table display on small screens
fixes#4fixes#11
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
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.
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
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