Google Map API v3 displays only 5 layers

本小妞迷上赌 提交于 2019-12-02 12:57:38

问题


Simple calls with 10 KML files we have only 5 displayed.

It was working for couple months and suddenly stopped (on May28, 2012).

 var map = new google.maps.Map(
      document.getElementById("map_canvas"),
      myOptions);
 ...
 var p1 = new google.maps.KmlLayer("http://domain.com/DLAYYZ.kml");
    p1.setMap(map);
    ....
    var p10 = new google.maps.KmlLayer("http://domain.com/A70BR2.kml");
    p10.setMap(map);
 ...

<body onload="initialize()">

  <div id="map_canvas"></div>

If I use Network Links then I'm able to display up to 10 according to limitation But can not find any limitation for 5 layers.

Also google displays randomly 5 out of 10. Every time I refresh we might have different layers.

Does anyone know if Google restricted something recently?

According this: http://www.google.com/enterprise/earthmaps/maps-compare.html only Network Links are restricted to 10. We have tried from different domain, different api key and still are able to display only 5.

Thank you

来源:https://stackoverflow.com/questions/10821682/google-map-api-v3-displays-only-5-layers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!