If you use the Google Maps Javascript API v3 with large layers, then Google provides layers for you, but there is a file size limit.
https://developers.google.com/kml/documentation/mapsSupport
KML GGeoXml , , GOverlay , addoverlay. , KML GGeoXml , , addoverlay .
geoxml3, , Google.