aastepanek/DetroitBirthday — pull request #3 by bkrabach (2014-08-04 16:58:03+00:00)
Title: Adjust js settings & add function for calculating zoom adjustments based...

Ok, final pull request unless you have any further adjustments you need me to make.

This one cleans up some final stuff, but adds a new function for adjusting the zoom level based upon the screen height. I created this to use a 1000px high map region for setting the default zoom levels and then it'll dynamically adjust those zoom levels based upon the actual screen height when it comes time to perform an actual zoom (basically, scaling the zoom to match the browser height). I found it easiest to set zoom levels by maxing out your browser size (for more precision) and then adjusting the values via trial & error (usually by values of 10 for small tweaks and larger for bigger ones).

The coordinates for the center points of the maps are based upon the distance from the top left corner of the image in Photoshop. If you want to create new x/y coordinates for any location, you can just use horizontal/vertical rulers in photoshop to create a crosshair over the point you want and then drag a selection box from the upper left corner of the screen down to that point and then capture the height/width of that box as x/y coordinates respectively.