KML图层限制的问题 [英] Issues with KML Layers limit
问题描述
我已通过网址将6 kml图层加载到我的网站,以通过复选框切换。我最近注意到,它只会允许我在给定的时间显示4 kml的。当我选择超过4时,第5和第6不显示。不管我选择什么,它似乎限制我只显示4.有人可以指导我什么可能导致这种或应该我编码这个其他方式? kml的自己做的工作,是在800kb以下。看起来很奇怪,我只能在给定的时间显示4 kml。
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.
这是网站 - www.gbnrtc.org/bikemap
This is the site - www.gbnrtc.org/bikemap
推荐答案
如果您选中 KML支持页面,其中列出了为Google地图和Google地图移动版提供的KML支持级别,其中列出了以下大小和复杂性限制:
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:
- 最大抓取文件大小(原始KML,原始GeoRSS或压缩KMZ):3MB
- 最大未压缩KML文件大小:10MB
- 最大网络链接数:10
- 总文档范围功能的最大数量:1,000
- 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
由于你估计你的文件大小在〜800K,这将使你正确的大约3.2 MB的四个文件。如果不了解您的KML内容详情,这个限制在加载四个之后就会关闭。
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.
这篇关于KML图层限制的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!