0
Je veux faire un bouton arrière Android obtenir un pas à l'arrière et retirer le marqueur abandonné dans est-il possible de le faire?Comment supprimer Dropped Map marker?
public AddMarker(){
let image = '/assets/img/rsz_marker.png';
let marker = new google.maps.Marker({
map: this.map,
animation: google.maps.Animation.DROP,
position: this.map.getCenter()
, icon: image
});
}
platform.registerBackButtonAction(() => {
if (this.nav.canGoBack()) {
this.nav.pop();
} else {
//*remove marker?
}
});