Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49328

[solved]Google maps HtmlInfoWindow not displaying picture or html?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49328

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>