@cariaga wrote:
try{ var htmlInfoWindow = new HtmlInfoWindow(); var html = "<img src='http://cdn1-www.playstationlifestyle.net/assets/uploads/2017/09/Danganronpa-V3-Guide-5.png' width='64' height='64' >"; htmlInfoWindow.setContent(html); var s =this.map.addMarker({ position: {lat: 41.79883, lng: 140.75675} }).then(marker=>{ marker.on(GoogleMapsEvent.MARKER_CLICK).subscribe(() => { // this.showToast('clicked!'); htmlInfoWindow.open(marker); }); /* marker.on(this.maps.event.MARKER_CLICK, x=> { htmlInfoWindow.open(marker); }); marker.trigger(this.maps.event.MARKER_CLICK);*/ }); }catch(e){ alert((<Error>e).message); }
Posts: 2
Participants: 1