$(document).ready(function() { //------- Google Maps ---------// // Creating a LatLng object containing the coordinate for the center of the map var latlng = new google.maps.LatLng(49.2694357163,16.0009217262); // Creating an object literal containing the properties we want to pass to the map var options = { zoom: 15, // This number can be set to define the initial zoom level of the map center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP, // This value can be set to define the map type ROADMAP/SATELLITE/HYBRID/TERRAIN disableDefaultUI: true, zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.TOP_RIGHT } }; // Calling the constructor, thereby initializing the map var map = new google.maps.Map(document.getElementById('map_div'), options); // Add Marker var marker1 = new google.maps.Marker({ position: new google.maps.LatLng(49.2694357163,16.0009217262), map: map }); // Add listener for a click on the pin google.maps.event.addListener(marker1, 'click', function() { infowindow1.open(map, marker1); }); // Add information window var infowindow1 = new google.maps.InfoWindow({ content: createInfo('Nábytek-Novák') }); // Create information window function createInfo(title, content) { return '
'+ title +'
'; } });