All examples By author By category About

mpmckenna8

Shows where you are

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 /mbostock/2374239