block by mpmckenna8 8895a155be237f7c0a32

Shows where you are

Full Screen

Here I tried to show all the State Senate and Assembly districts for the state of California. Plus if you click on a given district the district number and name of the representative shows up in the info box. And if you give your browser permission a green circle should show up where you are. Plus I have the circle move where the map does. Had to change up the zoom function to hangle moving more than just paths.

The dot also changes color a little with a css animation.

Now to see if I can implement a better way to zoom than I’m currently utilizing.

This looks like a promising example http://bl.ocks.org/mbostock/2374239

index.html

map.css

twomap.js