Hiding an item (overlay) in the Sidebar

54 views
Skip to first unread message

ijmcf

unread,
Mar 25, 2010, 3:54:31 PM3/25/10
to KML Developer Support - Getting Started with KML
Hi

I am working on a KMZ for Google Earth that needs to display a
corporate logo via a ScreenOverlay element. Unfortunately (for my
purposes) the user can turn off the ScreenOverlay from the checkbox in
the Sidebar.

Is there any way to either a) 'lock' the checkbox so the ScreenOverlay
cannot be hidden, or (preferably) b) prevent the ScreenOverlay from
showing in the Sidebar at all.

Thanks!

Maarten L

unread,
Mar 25, 2010, 4:27:33 PM3/25/10
to KML Developer Support - Getting Started with KML
I don't think there is a way to lock the visibility of a screenoverlay
or any other element. What you could do is to include the
screenoverlay in a folder with other content unlikely to be hidden by
the user and use <ListStyle> and <checkHideChildren> to prevent the
content of the folder to be visible in the sidebar. See here:
http://code.google.com/apis/kml/documentation/kmlreference.html#liststyle

ijmcf

unread,
Mar 25, 2010, 4:49:31 PM3/25/10
to KML Developer Support - Getting Started with KML
Maarten

Thanks for your response. I had already implemented the
'checkHideChildren' folder style, and while it works it is an
inelegant and incomplete solution. I was hoping I had missed
something.

Thanks!

On Mar 25, 4:27 pm, Maarten L wrote:
> I don't think there is a way to lock the visibility of a screenoverlay
> or any other element.  What you could do is to include the
> screenoverlay in a folder with other content unlikely to be hidden by
> the user and use <ListStyle> and <checkHideChildren> to prevent the

> content of the folder to be visible in the sidebar.  See here:http://code.google.com/apis/kml/documentation/kmlreference.html#lists...

Reply all
Reply to author
Forward
0 new messages