0

I'm trying to create a link in a web page that permit to open google maps and/or google earth loading the kml file specified. I see here geouri method but don't seems working anymore with kml file I also saw for example this: https://earth.google.com/web/?kml=https://tourbuilder.withgoogle.com/tours/ahJzfmd3ZWItdG91cmJ1aWxkZXJyEQsSBFRvdXIYgICg6vjqywkM/earth but this method seems working only with specific sites like tourbuilder, and for what I need, kml generated dynamically from the web pages, possibly updated over time and numerous kml (almost 200) would take a long time to create a "tour" for each (if that is possible) and would restrict the possible changes to the web page and to kml.

Can someone tell me if there is another way to create a link in a web page that permit to open google maps and/or google earth loading the kml file specified please?

geocodezip
  • 158,664
  • 13
  • 220
  • 245
Fantu
  • 5
  • 4

1 Answers1

0

Maps.google.com used to support loading public KMLs via the search bar or via a URL parameter, but not anymore. To load a KML in Google Maps, you need a web site (can be very simple) that uses the Maps API and loads a KML Layer. Sounds like not your use-case, but if it was a simple KML that wouldn't be changing often, you could consider uploading it to a MyMap and sharing that.

Google Earth for web & mobile (as opposed to the Earth Pro desktop application) does not currently support loading arbitrary KMLs via URL either, except for certain KML sources (as you saw with tourbuilder).

Christiaan Adams
  • 1,257
  • 1
  • 7
  • 13
  • thanks for your reply, I already use google maps api load kml ecc... – Fantu Nov 14 '19 at 08:25
  • but for use term "(d) No Re-Creating Google Products or Features" seems I can't try to create for example something for navigation help, I should use google maps instead loading kml in it but if is not supported anymore as you reply, seems that target like this can't be reached :(, or I'm wrong? – Fantu Nov 14 '19 at 08:31