Skip to content

v0.9.0

Compare
Choose a tag to compare
@btskinner btskinner released this 17 Feb 23:21

Update

Improvements

Now changing opacity of colleges when toggling off rather than switching icon to a transparent icon. According to style specification for layer, changing Paint property (opacity) is cheaper than Layout property (new icon or visibility).

Because you can only change opacity for entire layer, colleges are now in separate layer and using separate geojson file.

Changes

  • B/c separate geojson files have common $id now, changed code from features.id to features.properties[_id] throughout. _id == z, which is unique ID across data, and allows for continued use of single data array, s, so popups should be correct.
  • Compressed college.geojson and icon.geojson to remove whitespace using
    • cat college.geojson | tr -d " \t\n\r" > college_comp.geojson
    • cat icon.geojson | tr -d " \t\n\r" > icon_comp.geojson
  • General changes to accommodate new code structure