Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Inside button hum windows google map information

$
0
0

@alanfagner wrote:

Can someone help me need to put a button in un InfoWindows component gogole maps .
today I am doing so .

`private criarInfoWindows(latLng, map, evento) {

    let infowindow = new google.maps.InfoWindow({
        content: this.createInfoWindowContent(latLng, map.getZoom(), evento, map),
        maxWidth: 200,
        position: latLng
    });
    return infowindow;
}

createInfoWindowContent(latLng, zoom, evento, map) {
    var scale = 1 << zoom;
    var worldCoordinate = latLng;
    return [
        "<div class='fonteAllInfoWindow'> <div class='titleInfoWindow'>" + evento.localizacao.nome + "</div>",
        "<div class=''> <div class='labelInfoWindow'>Evento</div> " + evento.nome + "</div>",
        "<button (click)='subirAlerta()' class='disable-hover button button-default button-icon-left'><span class='button-inner'>",
        "<ion-icon name='home' role='img' class='ion-ios-home'' aria-label='home'></ion-icon>",
        "</span><ion-button-effect></ion-button-effect></button>",
        "</div>"
    ].join('');
}`

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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