How do I render KML files that are hosted on intranet sites on a map?
The KmlLayer class that generates KML overlays in the Google Maps API uses a Google hosted service to retrieve and parse KML files for rendering. Consequently it is not possible to display KML files that are not hosted at a URL that is available publicly accessible, or that require authentication to access. If you need to develop applications that use KML files hosted on intranet sites we recommend that you either: • use the Google Earth API which supports client side parsing and rendering of KML. • render the KML on the client side by using third-party Javascript libraries. As the KML file is analyzed by the browser, performance may be lower than by using the KmlLayer class.