On Oct 3, 12:29 pm, Rossko <[email protected]> wrote:
> In the other thread, the advice was given as an example
> new GMarker(latlng, {title:"Tooltip text"})
> in your case you have
> new GMarker(point)
> as a part of one line ; to make it like the example you would use
> new GMarker(point, {title:"Tooltip text"} )
>
> A more realistic example might look like
> var tooltipText = "Some wordies" ;
> var marker = new GMarker(point, {title: tooltipText} );
> using normal javascript variable-substitution
>
> Have you seen this invaluable resource?
> http://econym.org.uk/gmap/
> see in particular
> http://econym.org.uk/gmap/tooltips.htm
Yes, I am aware of Mike's excellent tutorials, but missed the Tooltips
tutorial!
Now that I have and added the appropriate line:
var marker = new GMarker(point, {title:name});
to my code, I am disappointed that it uses the text in the label part
of the marker code in the xml file.
For example, my first marker includes:
label="<b>Ahtanum Multiple Use Area</b>"
which causes the tooltip to display:
<b>Ahtanum Multiple Use Are</b>
and doesn't display in bold.
That is partially a good thing as I don't need to tooltips in bold!
But I do want the tooltips to display.
Here's the map with the tooltip code included:
http://www.wohva-map-catalog.org/index-TT.htm
I'm wondering if there's a way to create a style solely for the
tooltip?
Thanks,
Paul
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.