@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