Google Maps kml文件限制 [英] Google Maps kml file limit

查看:140
本文介绍了Google Maps kml文件限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以渲染的kml文件的数量有限制吗?我知道有一个文件大小限制,但我似乎正在达到另一个限制。

Is there a limit to the number of kml files which can be rendered? I know there is a file size limit but I seem to be hitting another limit.

抛出的错误是

The error thrown is

GET https://mts1.googleapis.com/mapslt?hl=en-US&lyrs=kml%3AcXOw0bjKUSgN5kcEMpDT…7Capi%3A3%7Cclient%3A2&x=67&y=98&z=8&w=256&h=256&source=apiv3&token=127990 414 (Request-URI Too Large) mts1.googleapis.com/mapslt?hl=en-US&lyrs=kml%3AcXOw0bjKUSgN5kcEMpDTUkENzfIp…api%3A3%7Cclient%3A2&x=67&y=98&z=8&w=256&h=256&source=apiv3&token=127990:1

以下是我试图完成的例子。

Below is an example of what I am attempting to accomplish.

http://tinyurl.com/qg5enx8

推荐答案

源自文档


可以在单个Google地图上显示的KML图层数量有限制。
如果超出此限制,则不显示任何图层。该限制基于传递给KMLLayer类的所有URL的
总长度,因此会因应用程序而异;
平均而言,您应该可以在不超过限制的情况下加载10到20层。

There is a limit on the number of KML Layers that can be displayed on a single Google Map. If you exceed this limit, none of your layers will display. The limit is based on the total length of all URLs passed to the KMLLayer class, and consequently will vary by application; on average, you should be able to load between 10 and 20 layers without hitting the limit.

这篇关于Google Maps kml文件限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆