Lets make it simple
var icon = new google.maps.MarkerImage('stan.png', new google.maps.Size
(26, 32),new google.maps.Point(0,0),new google.maps.Point(13, 16));
poiPosition = map.getCenter();
var marker = new google.maps.Marker({
position: poiPosition,
icon: icon
});
info = new google.maps.InfoWindow();
google.maps.event.addListener(marker, 'click', function() {
info.setContent("MY INFO TEXT");
info.open(map, marker);
--
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.