ClusterMarkers Ionic 2/3 Native GoogleMaps

时间:2017-05-31 23:22:03

标签: google-maps ionic2 ionic3

很快有人利用ClusterMarkers在本机GoogleMaps插件中托管了大量的2/3离子标记。谢谢。

1 个答案:

答案 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);

}