Commit graph

17 commits

Author SHA1 Message Date
Hugh Rundle 5892607d83 ILS updates
- change SLV to Alma
- change Newcastle regional to iii Polaris
- add Polaris as a colour option on the map
2022-09-03 17:07:53 +10:00
Hugh Rundle 8569270115 add nsla overlay for ILS layer
Changed the "library management software" layer so that there are 2 overlays: Local libraries, and NSLA libraries.
Resolves #119
2021-09-06 19:12:40 +10:00
Hugh Rundle 6ae52b4795 make code more DRY
- creates BaseMap constructor for all base map tile layers
- creates LocationsLayer constructor for all location layers
- replaces old verbose code with more succinct code using these constructors
2021-03-08 16:18:45 +11:00
sallybaker 0af9558adf add website to library services pop-up 2021-02-10 23:40:56 +10:00
Alissa M afb73777d4 Update load-map.js
edited getIlsColor function to match library_services_information.csv
2021-01-25 22:06:51 +11:00
Hugh Rundle 87a470f39f change naming of library view modes
Summary
=======

- changes "White Fragility mode" to "Colonial Mode"
- changes "General mode" to "Standard Mode"
- changes "Worker Pacification Centres" to "Mechanics Institutes"

Explanation
===========
The point of two modes is to invite map users to think about the work libraries do as institutions, and how certain types of cultural organisation are normalised and certain types are othered. In particular, why are "Indigenous Knowledge Centres" different from "public libraries", and precisely *how*?

Calling the non-standard view "White Fragility Mode" implies that the individual using it is at fault, not woke enough, fragile. This is not helpful as an invitation to be thoughtful and consider the language and perspectives that are normalised.

Changing it to 'colonial' mode shifts the emphasis to that of an institutional and structural concern, rather than an individual fault.

The change for Mechanics Institutes follows more reading about them. Their history is complicated, a mixture of genuine self-help and mutual aid, and attempts by capitalists to control their workers.
2021-01-25 14:32:18 +11:00
Hugh Rundle 21c0c10f08 add ILS map
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.
2021-01-25 13:43:10 +11:00
Hugh Rundle ae5c04c533 zoom out more on mobile
Mobile screens are likely narrower (portrait) so zooming out a little more shows an equivalent width for the Australian continent.
2021-01-24 17:00:28 +11:00
Hugh Rundle 8c99dfc3fa keep infoboxes regardless of overlays active
This does not apply on smaller screens, where we hide the infoboxes

fixes #9
2021-01-24 12:53:55 +11:00
Hugh Rundle bd664dd17d fix styling for mobile
- 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 #4
fixes #11
2021-01-24 12:40:17 +11:00
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 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 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 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 56e382922f update files 2021-01-17 19:47:25 +11:00