On Apr 23, 11:20 am, admhays <[email protected]> wrote:
> I have managed to create the marker but nothing happens when I click
> on it. Just need a simple info window and I will go from there thx!
>
> Weblink:http://adamspaintcompany.com/index.php?p=1_14_Satisfied-Customers
>
> Here is the code:
(untested code)
> var jeanette = new GLatLng(39.2279, -94.6284 );
jeanette is a GLatLng. GLatLng's don't support click listeners. Try
putting it on a GMarker:
var jeanette = new GMarker(new GLatLng(39.2279, -94.6284));
Then add the click listenter:
GEvent.addListener(jeanette, "click", function() {
// and open it on the marker
jeanette.openInfoWindowHtml("Some stuff");});
> map.addOverlay(new GMarker(jeanette))
-- 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
-~----------~----~----~----~------~----~------~--~---