I played around with opening Google Maps My Maps this way a while back. You can usually get the KML for a My Map by changing the output parameter in the URL to kml.
There were two situations where Google Maps managed to open the KML without giving the contains errors error message. One was when the internet connection just happened to get interrupted while loading. The other was when I downloaded the KML manually from the My Maps URL and put the KML on my own web server. I haven't figured out why the same KML file works fine off my server when it doesn't work off the Google Maps server. I did notice the MIME type is different. My server returns "application/vnd.google-earth.kml +xml" whereas Google Maps uses some Javascript MIME type if I recall correctly. There could be other differences, though. The Google Maps server may return a different file depending on user agent or something, for example. On Nov 20, 10:11 am, furby <[email protected]> wrote: > I know that isn't exactly right - I can start the map application > using an intent like this : > > final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, > Uri.parse("geo:0,0?q=http://code.google.com/apis/kml/documentation/ > KML_Samples.kml")); > startActivity(myIntent); > > And it loads that KML into the app and shows it... > > On Nov 20, 9:55 am, JP <[email protected]> wrote: > > > No you cannot create an overlay that's directly driven from KML/KMZ > > file input. > > You'll have to do this "by foot", i.e. parse out the input file and > > feed the resulting Placemarks into an overlay > > > On Nov 20, 6:30 am, furby <[email protected]> wrote: > > > > Is the map application that comes with Android capable of digesting > > > KMZ files at all? I can start it up with an intent that sends in a KML > > > file with no problem... But every single time I send a KMZ URL to it, > > > it tells me that the file "Contains Errors". Since i have now tried > > > roughly a dozen different URLS with a dozen different KMZ files, I > > > somehow suspect it is not the KMZ's that are corrupted - especially > > > since those KMZ's open fine in Google Earth... > > > > So I have to wonder - is this a problem with that app, with the ADT or > > > is it just not supported? -- You received this message because you are subscribed to the Google Groups "Android Developers" 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/android-developers?hl=en

