<MultiGeometry> is supported - I use it. Each placemark can contain either a <style> node or a <styleUrl> which references a <Style id="XXX"> node that is a direct descendant of the <Document> node. The <Style> node contains definitions for icons. For a basic example, take a look at http://search.missouristate.edu/map/kml/?layers=shuttle&routes=red
Chad Killingsworth On Oct 23, 5:10 pm, john <[email protected]> wrote: > OK, <MultiGeometry> did the trick on put multiple polygons in one > <Placemark> (mapsSupport.html did not list MultiGeometry and I > worried) > and I can give a name to the Placemark. > > Now I want to change the color to red of one Placemark based on the > name of the Placemark. How can I do that? > > On Oct 23, 3:06 pm, "[email protected]" <[email protected]> > wrote: > > > > > > > > > On Oct 23, 12:03 pm, Rossko <[email protected]> wrote: > > > > > Now I have more question about KML. > > > >http://code.google.com/apis/kml/documentation/kml_tut.htmlhttp://grou... > > > > > Take the example of Tasmania. How can show one of the sub-region in a > > > > different (line) color. > > > >http://code.google.com/apis/kml/documentation/kmlreference.html#lines... > > > > > A sub-region may contain multiple polygons (like those islands). > > > >http://code.google.com/apis/kml/documentation/kmlreference.html#multi... > > > You also need to worry about what parts of KML kmlLayer > > supports:http://code.google.com/apis/kml/documentation/mapsSupport.html > > > -- Larry > > > > > I also like to change the color dynamically. > > > > In response to what, or just at random? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
