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?