basic.js 634 Bytes
Newer Older
Muhamad's avatar
Muhamad committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
/* ------------------------------------------------------------------------------
*
*  # Basic map
*
*  Specific JS code additions for maps_google_basic.html page
*
*  Version: 1.0
*  Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */

$(function() {

	var map;

	// Map settings
	function initialize() {

		// Optinos
		var mapOptions = {
			zoom: 12,
			center: new google.maps.LatLng(47.496, 19.037)
		};

		// Apply options
		map = new google.maps.Map($('.map-basic')[0], mapOptions);
	}

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

});