1. Declare infowindow variable
2. Create an instance of InfoWindow object
3. Add marker click event listener code
google.maps.event.addListener(beachMarker, 'click', function()
{
infowindow.setContent("Marker click event");
infowindow.open(map, this);
});
4. Check out Tutorials
http://code.google.com/apis/maps/documentation/javascript/overlays.html
5. Pay attention to the variables scope (map, marker, infowindow)...
Radina
On Nov 24, 6:38 am, gunness <[email protected]> wrote:
> Hello,
>
> i finally made a map with a custom icon:
>
> http://www.matzeking.de/googlemaps/
>
> Can someone please tell me, how I can open a info window like:
>
> http://code.google.com/intl/en/apis/maps/documentation/javascript/exa...
>
> by clicking on the custom icon?
>
> Thank you very much for your help!
>
> gunness
--
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.