2017-05-31 1 views

答えて

1

それはあなたにマップを追加する方法です。あなたが最初に地図を作成する必要がありますケア。

addMarker() { 

// costum image 
//let image = 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png'; 
let marker = new google.maps.Marker({ 
    map: this.map, 
    animation: google.maps.Animation.DROP, 
    position: this.map.getCenter() 
    //,icon: image 
}); 

let content = "<h4>Information!</h4>"; 

this.addInfoWindow(marker, content); 

} 
関連する問題