2016-12-22 1 views

Antwort

0

Vom google maps docs

function initMap() { 
    var myLatLng = {lat: -25.363, lng: 131.044}; 

    var map = new google.maps.Map(document.getElementById('map'), { 
    zoom: 4, 
    center: myLatLng 
    }); 

    var marker = new google.maps.Marker({ 
    position: myLatLng, 
    map: map, 
    title: 'Hello World!' 
    }); 
    google.maps.event.addListener(marker, 'click',() => { 
    infoWindow = new google.maps.InfoWindow({content: "This is DC!"}) 
    infoWindow.open(map, marker) 
    }) 
} 
+0

Ich stelle mir Sie das Info-Fenster danach stylen können. –