Search code examples
google-mapsgoogle-maps-api-3geolocationmapskml

Break large KML into multiple (smaller) KMLs


How do you break down a large KML into multiple smaller KML files that are referenced by a parent KML file?


Solution

  • The way to have multiple simultaneous KMLs referenced in one parent KML is using the NetworkLink element.

    Here is a a file that uses one:

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://www.opengis.net/kml/2.2">
    <NetworkLink>
      <name>Loads Point.kml</name>
      <Link>
        <href>http://developers.google.com/kml/documentation/Point.kml</href>
      </Link>
    </NetworkLink>
    </kml>