Multi-line tooltip on google map

1,162 views
Skip to first unread message

Mehdi Rabah

unread,
Jun 11, 2008, 6:34:43 AM6/11/08
to Google Web Toolkit
Hi,

I'm searching for the way to break the tooltip text into multiple
lines in gwt-maps?

The marker options setInfo (is that it?) method doesn't support html,
and a simple "\n" seem to work in IE but not in FF. Any ideas ?

Regards,
--
Mehdi

Eric Ayers

unread,
Jun 11, 2008, 10:34:28 AM6/11/08
to Google Web Toolkit
Hi Mehdi,

Have you tried searching for the answer or asking on the Maps group:

http://groups.google.com/group/Google-Maps-API

gwt-maps simply wraps the Google Maps API and I'm not sure anything in
it would influence the behavior at that level.

-Eric.

On Jun 11, 6:34 am, Mehdi Rabah <mehdi.ra...@gmail.com> wrote:
> Hi,
>
> I'm searching for the way to break thetooltiptext into multiple

Mehdi Rabah

unread,
Jun 11, 2008, 2:09:07 PM6/11/08
to Google Web Toolkit
Hi Eric,

I didn't tried the maps group since I know it's already possible to do
that with google maps (I've seen a website doing it). I just want to
know how to do it with the GWT wrapper of google maps.

--
Mehdi

On 11 juin, 16:34, Eric Ayers <zun...@google.com> wrote:
> HiMehdi,
>
> Have you tried searching for the answer or asking on the Maps group:
>
> http://groups.google.com/group/Google-Maps-API
>
> gwt-maps simply wraps the Google Maps API and I'm not sure anything in
> it would influence the behavior at that level.
>
> -Eric.
>

Eric Ayers

unread,
Jun 11, 2008, 2:33:47 PM6/11/08
to Google-We...@googlegroups.com
Hello Mehdi,

Here is the JavaScript API that the Maps API wraps:

http://code.google.com/apis/maps/documentation/reference.html#GMarkerOptions

  ' This string will appear as tooltip on the marker, i.e. it will work just as the title attribute on HTML elements. (Since 2.50)'

If you call MarkerOptions.setTitle("tooltip text");  the "tooltip text" string is just passed to set the 'title' property in the JavaScript API.  That's all that gwt-google-apis currently does.  If there is some trick to do something different, you'll probably find it by going to the Maps group.  If you find a trick to do it in JavaScript and you can't do it in the GWT Maps API, please file it as an issue.

Thanks,
-Eric.
--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

Mehdi Rabah

unread,
Jun 12, 2008, 4:30:42 AM6/12/08
to Google Web Toolkit
Ok thank you. In fact, the website I was talking about create a
tooltip of his own when the mouse pass over it. It wasn't using
setTitle after all.

Thanks,
--
Mehdi

On 11 juin, 20:33, "Eric Ayers" <zun...@google.com> wrote:
> Hello Mehdi,
>
> Here is the JavaScript API that the Maps API wraps:
>
> http://code.google.com/apis/maps/documentation/reference.html#GMarker...
Reply all
Reply to author
Forward
0 new messages