On 2 nov, 05:52, Eliot <[email protected]> wrote:
> Hi
> my page is:http://alborzhosting.com/map/uni.html
> i want to add tootip for each of markers in the map.
> how can i do this?

Do you mean by displaying an infoWindow when markers are clicked?
If that's the case you may create infoWindow with the information and
then attach it to the marker. That for each marker.

e.g:


var map = new google.maps.Map(document.getElementById("map_canvas"),
myMapOptions);

var marker = new google.maps.Marker({ ...marker options
});

var infoWindow = new google.maps.InfoWindow({
content: 'The message that will be displayed when clicked'
});

google.maps.event.addListener(marker, 'click', function() {
infoWindow.open(map, marker);
});

Hope it helps.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to