Hello,
I have a Google Earth plug-in 1.0.0.1 map that uses two Screen
Overlays. One of them is meant to function as a "pause" button, whose
image will be toggled between Play (>) and Pause ( || ) images.
When I give the overlay its initial image (looks like || ), it
displays fine.
But when I try to change the image (to look like >), nothing happens.
I tried both changing the href of the overlay's icon:
pauseButtonOverlay.getIcon().setHref('images/play1.png');
and replacing the overlay's icon with a new one:
var icon = ge.createIcon('');
icon.setHref('images/play1.png');
pauseButtonOverlay.setIcon(icon);
No errors are reported.
I can check the value of the Href in the javascript console:
>>> pauseButtonOverlay.getIcon().getHref()
"images/play1.png"
and it is the URL of the new play icon.
However, the overlay continues to display the old icon.
Am I doing something wrong?
Do I have to create a new screen overlay?
I'm using Windows 7, tested in Firefox 3.6.10 and IE 8.0.7600.16385
My app is currently at
http://www.huttar.net/lars-kathy/tmp/visitor-map-earth-bugreport.html
(subject to change)
I just posted a bug report on this (
http://code.google.com/p/earth-api-
samples/issues/detail?id=536), but it occurred to me I should ask in
this group to see if I'm doing something wrong.
Thanks for any help,
Lars