On Sep 17, 9:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Sep 17, 8:38 pm, lusiton <[EMAIL PROTECTED]> wrote:
>
> > Hi all.
> > I'm new to gmaps and don't have much experience to solve simple
> > problems yet. I created custom Icon but can't make the info window
> > appear on click. I have regular icons that work fine.
>
> > This is a page url:http://www.culyo.com/test.php
>
> You are doing this:
> var marker = new GMarker(point,baseIcon,'<div style="width:
> 240px">Some stuff to display in the First Info Window. With a <a
> href="http://www.econym.demon.co.uk">Link</a> to my home page</div>')
>
> That is not the correct syntax for the GMarker constructor (the API
> had a currently deprecated syntax which took more than 2 arguments,
> you don't want to use
> that...)http://code.google.com/apis/maps/documentation/reference.html#GMarker...
>
> It would be best to modify your createMarker function to take an
> "icon" argument...
>
> See the examples in Mike Williams' tutorial.
You also have an error in your createMarker function:
var marker = new GMarker(point,html);
the "html" argument is incorrect, that is where the GInfoWindowOptions
object (or the icon) should go. The GMarker doesn't have an argument
appropriate for the html in the infoWindow.
-- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---