$(document).ready(function(){

	//Initialize global variables

	//Define functions
	var map;
	var latitude;
	var longitude;

	function initialize() {
		var mapOptions = {
		zoom: 8,
		geoLocation();
		center: new google.maps.LatLng(latitude, longitude),
		mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		map = new google.maps.Map(document.getElementById('map-section'), mapOptions);
		console.log(latitude);
		console.log(longitude);
	}

	function showLocation(position) {
		var latitude = position.coords.latitude;
		var longitude = position.coords.longitude;
   }

	function errorHandler(err) {
   		if(err.code == 1) {
			alert("Error: Access is denied!");
		}
		else if( err.code == 2) {
			alert("Error: Position is unavailable!");
		}
	}

	function getLocation(){

		if(navigator.geolocation){
		// timeout at 60000 milliseconds (60 seconds)
			var options = {timeout:60000};
			navigator.geolocation.getCurrentPosition(showLocation, errorHandler, options);
		}
		else{
			alert("Sorry, browser does not support geolocation!");
		}
	}

	google.maps.event.addDomListener(window, 'load', initialize);

  //Event listeners





});
@@ -103,286 +103,34 @@
 tude
-;%0A%09var longitude;%0A%0A%09function initialize() %7B%0A%09%09var mapOptions = %7B%0A%09%09zoom: 8,%0A%09%09geoLocation();%0A%09%09center: new google.maps.LatLng(latitude, longitude),%0A%09%09mapTypeId: google.maps.MapTypeId.ROADMAP%0A%09%09%7D;%0A%09%09map = new google.maps.Map(document.getElementById('map-section'), mapOptions)
+ = 0;%0A%09var longitude = 0
 ;%0A
-%09
 %09con
@@ -149,17 +149,16 @@
 itude);%0A
-%09
 %09console
@@ -173,19 +173,16 @@
 gitude);
-%0A%09%7D
 %0A%0A%09funct
@@ -185,28 +185,50 @@
 unction 
-showLocation
+initialize() %7B%0A%0A%09%09function success
 (positio
@@ -234,20 +234,17 @@
 on) %7B%0A%09%09
-var 
+%09
 latitude
@@ -240,24 +240,25 @@
 %09%09%09latitude 
+ 
 = position.c
@@ -275,20 +275,17 @@
 tude;%0A%09%09
-var 
+%09
 longitud
@@ -319,192 +319,68 @@
 de;%0A
-   %7D%0A%0A%09function errorHandler(err) %7B%0A   %09%09if(err.code == 1) %7B%0A%09%09%09alert(%22Error: Access is denied!%22);%0A%09%09%7D%0A%09%09else if( err.code == 2) %7B%0A%09%09%09alert(%22Error: Position is unavailable!%22
+%09%09%09console.log(latitude);%0A%09%09%09console.log(longitude
 );%0A%09%09%7D
+;%0A
 %0A%09
-%7D%0A%0A
 %09fun
@@ -389,136 +389,77 @@
 ion 
-getLocation
+error
 ()
+ 
 %7B%0A
-%0A%09%09if(navigator.geolocation)%7B%0A%09%09// timeout at 60000 milliseconds (60 seconds)%0A%09%09%09var options = %7Btimeout:60000%7D;%0A%09
+%09%09%09console.log(latitude);%0A%09%09%09console.log(longitude);%0A%09%09%7D;%0A%0A
 %09%09na
@@ -502,118 +502,244 @@
 on(s
-howLocation, errorHandler, options);%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09alert(%22Sorry, browser does not support geolocation!%22);%0A%09%09%7D
+uccess, error);%0A%0A%09%09var mapOptions = %7B%0A%09%09%09zoom: 8,%0A%09%09%09center: new google.maps.LatLng(latitude, longitude),%0A%09%09%09mapTypeId: google.maps.MapTypeId.ROADMAP%0A%09%09%7D;%0A%0A%09%09map = new google.maps.Map(document.getElementById('map-section'), mapOptions);
 %0A%09%7D%0A
@@ -803,18 +803,17 @@
 lize);%0A%0A
-  
+%09
 //Event 
@@ -823,15 +823,11 @@
 teners%0A%0A
-%0A%0A%0A%0A
 %7D);

Enhance Google Maps