v0.9.0
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 fromfeatures.id
tofeatures.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
andicon.geojson
to remove whitespace usingcat 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