My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 5845: KML Support for Mobile
24 people starred this issue and may be notified of changes. Back to list
Status:  NeatIdea
Owner:  ----


Sign in to add a comment
 
Reported by [email protected], Sep 23, 2013
KML is a staple of Google Maps APIs and products. Storing map layers in KML format is encouraged by other Google products, and rendering them with the Google Maps API for Android/iOS would enable several of my projects to move forward.

This issue is similar to this request for the Android SDK:
https://code.google.com/p/gmaps-api-issues/issues/detail?id=5839
Feb 25, 2014
#1 [email protected]
KML is a staple of the Google Earth API, but its support in the Google Maps API is kind of tacked on.  Google Earth uses the Plate Carree projection.  Google Maps uses the Web Mercator projection.

For features where the vertices are explicitly known they can be reprojected dynamically or on a remote server.  However, this does not work for rasters-- unless they are warped/reprojected they will be quite off, and warping/reprojecting rasters is expensive.

Can it be done?  Sure.  But even best case, you're parsing a XML file (bottleneck on CPU) and reprojecting coordinates / rebuilding geometry with scalar code (bottleneck on CPU).  Worst case you're warping and reprojecting a raster (reaaaally bottlenecks on CPU), or just displaying it wrong.  KML has different features and object types.

Maybe there should be an equivalent of KML for Google Maps and the Web Mercator projection, but KML itself isn't it.  It's the wrong coordinate system and stores far too much data that should be stored in a compact and efficient binary format as XML text.

I'm not against it being added, but it should be noted it's for a different product and thus incurs performance costs.  On the other hand, the true analog of KML for the Google Maps SDK, the raster/vector representation for the standard map type, hasn't been released and it doesn't look like it ever will be.  Disappointing either way.
Feb 25, 2014
#2 [email protected]
All of this is true, however... since it's support in the Google Maps Javascript API is excellent, it's a frustrating dichotomy.
Aug 10, 2014
Project Member #3 [email protected]
 Issue 5597  has been merged into this issue.
Aug 10, 2014
Project Member #4 [email protected]
 Issue 6734  has been merged into this issue.
Aug 10, 2014
Project Member #5 [email protected]
 Issue 6696  has been merged into this issue.
Jun 8, 2015
Project Member #6 [email protected]
(No comment was entered for this change.)
Status: NeatIdea
Jun 29, 2015
Project Member #7 [email protected]
 Issue 6658  has been merged into this issue.
Feb 11, 2016
#8 [email protected]
Will this ever be implemented? Javascript & Android have these already...
Sign in to add a comment

Powered by Google Project Hosting