> So if Google Maps does not support <labelColor> and <LabelStyle>, how > does one label the features in a KML file within Google Maps? There > must be a way, unless Google has decided to supress this functionality > on purpose because they do not want to give away so much control in an > API they provide for free...
No, they leave it up to you the developer. Maps supports only a subset of KML, for instance altitude stuff is pretty meaningless on 2D maps so there's little point in supporting that. They have also left out other stuff too, like labels, but I think you're being a bit paranoid about the reasons; Google Earth is a big fat application, while Maps is intended to stay a simpler slimmer beast more suitable for webpages and mobile use. The API does allow the flexibility to code a whole bunch of stuff above and beyond what can be encoded in KML, it would certainly be possible to write bespoke code to extract info and create labels as you wish. Example labels http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.5/examples/infobox-label.html buy in your case you'd have a lot more work to do to integrate that with KML. This kind of thing has been discussed before http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d50517f9a4acbb68/eac1deaa835ce9b7 but I haven't seen any implementation yet. Why aren't you using the GE API if you want full-featured KML on a webpage ? http://code.google.com/apis/earth/ -- 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.
