0
Dort ist meine Zieladresse von map-page.ts
und ich möchte den Weg von wo ich bin, was ich tun muss.ionische 2 Zielpfad
initMap(){
let latLng = new google.maps.LatLng(this.lat, this.lng);
let mapOptions = {
center: latLng,
zoom: 19,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
this.map = new google.maps.Map(this.mapElement.nativeElement, mapOptions);
let marker = new google.maps.Marker({
map: this.map,
animation: google.maps.Animation.DROP,
position: this.map.getCenter()
});
let content = this.msj;
this.addInfoWindow(marker, content);
}
Ich glaube, Sie suchen nach diesem https://developers.google.com/maps/documentation/javascript/examples/directions-complex. – Math10
Ja, ich sehe das und ich versuche es, aber ich kann diesen Service nicht in ionischen 2 ... – ibowankenobi