JoshuaPeddle / Visualizing-Technology-Use-by-Age-and-Region

Comp3100. Team 32. Joshua Peddle & Ethan Mc Donald.
0 stars 1 forks source link

Update map.js with ability to draw regions #29

Closed JoshuaPeddle closed 2 years ago

JoshuaPeddle commented 2 years ago

This commit adds drawing abilities to the map.

I've make a few changes to index.html. I added a value equal to the name of the geoJSON file to each locationFilter so we don't have to maintain a list like "Nova Scotia" : "NS" etc.

The geoJSON data is preloaded asynchronously once when the webpage is loaded instead of each time the check button is clicked. I think that's the proper way to do it.