| Issue 133: | Client-side adjustable transparency for SuperOverlays | |
| 6 people starred this issue and may be notified of changes. | Back to list |
What should this feature enhancement do? Enable transparency of Overlays using NetworkLinks (SuperOverlays) to be changed from the browser. It seems to me that if Overlay transparency were set with a <styleUrl> rather than a <color>, then SuperOverlay tile transparency could be adjusted en masse on the client side rather than the server side. Are there any known workarounds that produce the similar results? Only reloading the data using a different <color> attribute can produce a similar result. |
|
,
Jan 06, 2009
A more generic feature request would be to expose the Network Link DOM... that is, the ability to do: networkLink.getFeatures().getFirstChild() and such. Does this satisfy the requirement? |
|
,
Jun 05, 2009
Exposing the DOM for network links would be extremely useful too, but it wouldn't be
an ideal solution for this particular feature. You would still have to walk through
the DOM and call overlay.getColor().setA(n) on every individual GroundOverlay. That
could be slow for a very detailed superoverlay.
the.mutatron's approach would be perfect for this. For example, your root KML could
contain:
<Style id="MySuperStyle">
<IconStyle>
<color>FFFFFFFF</color>
</IconStyle>
</Style>
and your superoverlay KMLs would contain:
<GroundOverlay>
<StyleUrl>http://my.example.com/my.kml#MySuperStyle</StyleUrl>
...
</GroundOverlay>
Then you could get a reference to that <Style id="MySuperStyle"> element and simply
call style.getIconStyle().getColor().setA(n) and it would change the opacity of all
the ground overlays at once.
|
|
,
Jun 05, 2009
Agreed; setOpacity would be a more useful feature. |
|
,
Jun 08, 2009
A closely related point: What we're really looking for is for this opacity setting to be fast enough that we can animate it to do a fade effect. You can easily do that with a ground overlay - you can get a smooth fade with a fast frame rate. My hope is that making this single API call would set the opacity of all the ground overlays in the superoverlay, fast enough that we can run it on an interval timer and fade the entire superoverlay in or out, or even do a crossfade between two superoverlays. |
|
,
Jul 29, 2009
Just ran into the situation where I'd need this feature. +1 |
|
,
Sep 09, 2009
Available as an experimental feature in GE Plugin 5.0.3506.3999 (API 1.003) as KmlFeature.getOpacity and KmlFeature.setOpacity. More details here: http://groups.google.com/group/google-earth-api-notify/browse_thread/thread/6a32fdfcc60236e
Status: Fixed
|
|
|
|