On Sep 9, 8:13 pm, Ryan Ward <[EMAIL PROTECTED]> wrote:
> I must have something wring with my code as I'm not getting a tooltip
> displayed when I hover over the marker.
>
> My page is located
> here:http://www.ryanwardrealestate.com/WordPress/wp-content/themes/atlanta...
>
> I don't see any errors so I must be missing something. Any help would
> be appreciated.
The syntax is new GMarker (latlng, markerOptions) (see the
documentation)
your markerOptions is always {icon: blueIcon}
(so you don't get a tooltip)
The problem is your createMarker function is defined like this:
function createMarker(point,name,html)
you are calling like this:
createMarker(point, {title:"My House"},'Hello!</br />This is<br />the
window.');
You have some options:
I would suggest this:
inside your createMarker function do this
var marker = new GMarker(point, {title: name, icon: iconBlue});
and pass "My House" in the to the createMarker function.
But you could call your createMarker function like this:
createMarker(point, {title:"My House", icon: iconBlue},'Hello!</br /
>This is<br />the window.');
and change the definition to be createMarker (point, markerOptions,
html);
var marker = new GMarker(point, markerOptions);
or do something else. However you need to be consistent.
-- 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
-~----------~----~----~----~------~----~------~--~---