Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues with KML Layers limit

I have loaded 6 kml layers via url to my website to be toggled off/on by checkboxes. I have recently notice though, that it will only allow me to show 4 kml's at a given time. When I select more than 4 the 5th and 6th does not show. It does not matter what ones I choose, it seems to limit me to only showing 4. Can someone direct me on what may be causing this or should I be coding this some other way? The kml's by themselves do work and are under 800kb. Is just seems very weird that I can only have 4 kml showing at a given time.

This is the site - www.gbnrtc.org/bikemap

like image 853
kts Avatar asked Nov 13 '22 04:11

kts


1 Answers

If you check the KML Support page, which lists the level of KML support provided for Google Maps and Google Maps for mobile, it lists the following size and complexity restrictions:

  • Maximum fetched file size (raw KML, raw GeoRSS, or compressed KMZ): 3MB
  • Maximum uncompressed KML file size: 10MB
  • Maximum number of Network Links: 10
  • Maximum number of total document-wide features: 1,000

Given that you estimate your file size at ~800K, that would put you right around 3.2 MB for four of your files. Without knowing more about your KML content, it seems to make sense that the limit would gate you after loading four.

like image 164
Sean Mickey Avatar answered Jan 10 '23 09:01

Sean Mickey