聚类标记 Ionic 2/3 Native Google Maps
ClusterMarkers Ionic 2/3 Native GoogleMaps
有人很快就使用 ClusterMarkers 来托管大量 2/3 离子标记和原生 GoogleMaps 插件。谢谢。
这就是将标记添加到地图的方法。注意,您需要先构建地图。
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);
}
有人很快就使用 ClusterMarkers 来托管大量 2/3 离子标记和原生 GoogleMaps 插件。谢谢。
这就是将标记添加到地图的方法。注意,您需要先构建地图。
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);
}