Search code examples
javascriptgoogle-maps-api-3kml

Google Maps API KML layer limit


I need to display a large number of KML files on a Google Maps API map, based on certain conditions.

When I try adding these KML files, I end up reaching some limitation with Google Maps and KML layers.

enter image description here

I've tried using shortened URLs, PHP scripts, shortened URLs AND PHP scripts but nothing seems to have fixed the issue, and I still hit the limit within seconds...


Solution

  • Using GeoXML, I was able to add all the required KMLs to the map successfully! https://github.com/geocodezip/geoxml3

    Thanks to Tony Miller for the solution!