Api google maps windowns.info

1 resposta Resolvido
googlemapsphp
alexsander_curty

Pessoal, nao tenho muita experiencia com a API do Google Maps.
Estou com muita dificuldade para incluir o windown.info nas localizações.

Aquela opção que quando voce clicla no ponto abre um balão com algumas informações.
Alguem me ajuda. ja procurei em um monte de site mas nao consegui aplicar nenhuma sugestão.
Esse é o codigo que uso:

function initMap() {

    var map = new google.maps.Map(document.getElementById('map'), {
      zoom: 6,
      center: { lat: -20.305129999999900, lng: -40.301159999999900},
    });
	
	


    // Create an array of alphabetical characters used to label the markers.
    var labels = '123456789';

    // Add some markers to the map.
    // Note: The code uses the JavaScript Array.prototype.map() method to
    // create an array of markers based on a given "locations" array.
    // The map() method here has nothing to do with the Google Maps API.
    var markers = locations.map(function(location, i) {
      return new google.maps.Marker({
        position: location,
        label: labels[i % labels.length]
      });
    });

    // Add a marker clusterer to manage the markers.
    var markerCluster = new MarkerClusterer(map, markers,
        {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
  }
  var locations = [
  
{ lat: -20.305129999999930, lng: -40.301159999999940},
{ lat: -20.305129999999990, lng: -40.301159999999950},
{ lat: -20.305129999999900, lng: -40.301159999999900},
  
  ]
</script>

1 Resposta

alexsander_curty
Solucao aceita

Resolvido para quem precisar, solução no link: https://stackoverflow.com/questions/40047210/integrate-google-maps-markerclusterer-with-infowindow

Criado 29 de novembro de 2017
Ultima resposta 29 de nov. de 2017
Respostas 1
Participantes 1