Maximum Zoom functionality added. Swapped around code scoping to allow the app to work for geolocation enabled or disabled.