LucaPost wrote:
> Lance,
> I agree, there should be a way to list all elements of a multigeometry
> in the sidebar, but it is very common in KML to use a point+polygon to
> add a labelling icon and a mouseover effect (in GE) -in these cases
> only one element in the sidebar makes sense, the parent Placemark.
>   
Not sure how very common it is since Google Earth itself doesnt even 
make multigeometry. :-)
And in the latest Google Earth I saw that the polygons were themselves 
now clickable.

But that aside it would be an enhancement to GeoXml for it to list the 
name of the multigeometry only once ... it could
still show both the visual representations with an option to suppress 
the point or suppress the poly.

Currently the code doesn't treat multigeometries too much different it 
detects them only indirectly
inorder to composites multiple polygons so they are rendered 
correctly.(they are the main reason it
has support for multigeometries) .
>  
> I know I know (now that I have read the EgeoXml docs!) ...
> 'sidebarfn:'  is there to let people write custom functions to filter
> sidebar items as they like!
>   
Yes you can make and pass a sidebarfn the sidebar function in GeoXml is 
slightly more complicated
than the one for EGeoXml  though at that point I think the best you will 
be able to do is
suppress showing all points in the sidebar.

You could instantiate it with a sidebar function of your own that 
suppresses them then
If you have other kml with points you dont want to suppress you could 
restore the normal one
with something like this

gmlvar.sidebarfn = GeoXml.addSidebar;


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.40/2135 - Release Date: 05/26/09 
08:53:00

Reply via email to