问题
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