Google maps Cluster2/3本地谷歌地图
不久,有人利用本地GoogleMaps插件使用ClusterMarkers托管了许多2/3的离子标记。谢谢。这就是如何在地图上添加标记。你需要先建立你的地图Google maps Cluster2/3本地谷歌地图,google-maps,ionic2,ionic3,Google Maps,Ionic2,Ionic3,不久,有人利用本地GoogleMaps插件使用ClusterMarkers托管了许多2/3的离子标记。谢谢。这就是如何在地图上添加标记。你需要先建立你的地图 addMarker() { // costum image //let image = 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png'; let marker = new google.maps
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);
}
addMarker(){
//肋骨图像
//让图像显示https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png';
让marker=new google.maps.marker({
map:this.map,
动画:google.maps.animation.DROP,
位置:this.map.getCenter()
//,图标:图像
});
让内容=“信息!”;
此.addInfo窗口(标记、内容);
}