How to change cursor and display hint over overlay button

120 views
Skip to first unread message

dorjee

unread,
Dec 11, 2009, 2:13:50 AM12/11/09
to KML Developer Support - Google Earth Plug-in
See the code of a button displayed in GE plugin map, I used with the
overlay method:

http://groups.google.com/group/google-earth-browser-plugin/browse_thread/thread/75a84f0826aeea4b/7b0bcbe8c375d8ed#7b0bcbe8c375d8ed

Now my question is:

1) How to change the mouse cursor when flying over the button?

2) How to display a hint (tooltip?) when the same (flying over
button)?

Thank you for suggestions and, above all, code example!!!

dorjee

unread,
Dec 16, 2009, 6:00:22 AM12/16/09
to KML Developer Support - Google Earth Plug-in
Is there really no solution? I can't believe it!-))

On 11 déc, 08:13, dorjee wrote:
> See the code of a button displayed in GE plugin map, I used with the
> overlay method:
>
> http://groups.google.com/group/google-earth-browser-plugin/browse_thr...

Markw65

unread,
Dec 16, 2009, 9:50:09 AM12/16/09
to KML Developer Support - Google Earth Plug-in
If you use screen overlays, then Im not sure. I dont know of a way,
but I've never really tried to find one.

If you use the iframe shim technique instead, then you're effectively
doing everything in html, and so you have complete control over the
cursor, and tooltips etc.

Mark

dorjee

unread,
Dec 17, 2009, 6:33:53 AM12/17/09
to KML Developer Support - Google Earth Plug-in
Thanks Mark. I tried iframe shim but it poses a display problem in
Firefox (see this topic:
http://groups.google.com/group/google-earth-browser-plugin/browse_thread/thread/59d3c1954e70d147?hl=en).
Nothing's perfect!

Markw65

unread,
Dec 17, 2009, 11:13:51 AM12/17/09
to KML Developer Support - Google Earth Plug-in


On Dec 17, 3:33 am, dorjee wrote:
> Thanks Mark. I tried iframe shim but it poses a display problem in
> Firefox (see this topic:http://groups.google.com/group/google-earth-browser-plugin/browse_thr...).

Thats a well known problem. I've described the solution in this forum
several times.

In FF, if the iframe is inserted into the DOM /before/ the earth
becomes visible for the first time, it doesnt work.

The easy fix is to just iterate over all your iframe shims (give them
a unique class, such as "ishim", so you can differentiate them from
other iframes if necessary), remove them from the dom, and reinsert
them right after showing the earth instance.

Mark
Reply all
Reply to author
Forward
0 new messages