With all due respect, this is quite an easy task so it's a chance to
sharpen up your skills.
In your code, you've got examples of how to set up some variables for
each marker in turn.
So, make one called say tooltip for each marker, containing the text
you want. Just text for the simple tooltips, don't complicate it with
html tags like <bold> or anything.
Referring to Mike's tutorial, the basic method to create a tooltip is
-
new GMarker(point, {title:"My House"});
So you need to add this functionality to your existing marker creation
code, which already does a few other things.
Your marker creation code is wrapped up in a function called
createMarker, to which you pass several parameters like
createMarker(point, content1, content2, content3, tab1, tab2,
tab3,iconStr)
So, pass another parameter to it by adding one to the end, call it say
tiptext.
Within that function you already have the line
var marker = new GMarker(point, {icon: icon});
so you need to modify that line to add another option, for title.
Look again at Mike's tutorial to see where.
Remember that instead of the text "My House" you want to use the
variable that is passed into createMarker as tiptext.
Now go back to every one of your marker data chunks, and modify each
call of
var marker = createMarker(point, content1, content2, content3,
tab1, tab2, tab3,iconcolor);
to add an extra parameter on the end.
The variable you need to tag onto the end is the one that you defined
for each marker - tooltip was suggested earlier.
Now every time you run createMarker, it will be handed that string to
use as its internal variable, tiptext.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---