很快有人利用ClusterMarkers在本机GoogleMaps插件中托管了大量的2/3离子标记。谢谢。
答案 0 :(得分: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);
}