Google Maps API v3: InfoWindow is not in right position?

Try this: google.maps.event. AddListener(marker, "click", function (event) { infoWindow. SetContent(this.

Position); infoWindow. Open(map, this); }) Also, I do not see in the code where your are defining the variable marker You might want to add change addMarker(event. LatLng) to var marker = addMarker(event.

LatLng) and change the function to return the marker object: function addMarker(location) { countMarker++; var marker = new google.maps. Marker({ position: location, map: map, id: countMarker }); markersArray. Push(marker); return marker; }.

Try this: google.maps.event. AddListener(marker, "click", function (event) { infoWindow. SetContent(this.

Position); infoWindow. Open(map, this); }); Also, I do not see in the code where your are defining the variable marker. You might want to add change addMarker(event.

LatLng); to var marker = addMarker(event. LatLng); and change the function to return the marker object: function addMarker(location) { countMarker++; var marker = new google.maps. Marker({ position: location, map: map, id: countMarker }); markersArray.

Push(marker); return marker; }.

Thank you so much. That worked fine! But I kept the following lines - ` infowindow.

SetContent(event.latLng.toString()); infowindow. Open(map,marker);` – Pow Jul 7 at 21:50.

Var infowindow = new google.maps. Size: new google.maps. Var myLocation = new google.maps.

Map = new google.maps. Marker = new google.maps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions