// [START maps_add_map] // Initialize and add the map function initMap() { // [START maps_add_map_instantiate_map] // The location of Uluru const uluru = { lat: -25.344, lng: 131.036 }; // The map, centered at Uluru const map = new google.maps.Map(document.getElementById("map"), { zoom: 4, center: uluru, }); // [END maps_add_map_instantiate_map] // [START maps_add_map_instantiate_marker] // The marker, positioned at Uluru const marker = new google.maps.Marker({ position: uluru, map: map, }); // [END maps_add_map_instantiate_marker] } // [END maps_add_map]