google maps - FETCH_ERROR on parse KMZ in WEB -


i have application features dynamic kmz on map. kmz needs updated every 60 seconds, wherefore url uses versioning feature: "?v=201606011903". earlier week kmz stopped appearing on map , error api returns "fetch_error".
i'm intrigued as:

  • there have been no changes in application;
  • the generation of kmz working properly;
  • tested kmz generated in feedvalidator , result valid kml 2.2 feed;

curiosity: apparently there delay in acquisition or parse of kmz api. if try same kmz again after 3 minutes api returns correct results.

doubt: there maximum time download or parse of kmz api?

kmz analysis on feedvalidator

script test:

  • first change value of "v" , run. error "fetch_error" appear.
  • wait 3 minutes , run same code (as same parameter). kmz should appear correctly.

<html>    <head>      <style>        html, body {          height: 100%;          margin: 0;          padding: 0;        }        #map {          height: 100%;          width: 100%;        }      </style>    </head>    <body>      <div id="map"></div>      <script>          function initmap() {          var map = new google.maps.map(document.getelementbyid('map'), {            zoom: 12,            center: {lat: -23.5457562, lng: -46.6340402}          });            var kmllayer = new google.maps.kmllayer({            url: 'http://olhovivo.sptrans.com.br/fluidezdeolhonavia/cb?v=201606011903',            map: map          });                    kmllayer.addlistener("status_changed", function(a) {  					alert(kmllayer.getstatus());          });        }      </script>      <script async defer      src="https://maps.googleapis.com/maps/api/js?callback=initmap">      </script>    </body>  </html>

does have idea how can solve problem?
thank's!

it can caused size , complexity restrictions kml rendering, noted limits subject change @ time.

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 

number of kml layers

there limit on number of kml layers can displayed on single google map. if exceed limit, none of layers appear on map. limit based on combination of number of kmllayer classes created , total length of urls used create layers.

aside restrictions, common issues can encountered in rendering kml/kmz , tips resolve these issues can found in kml best practice , kml errata.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo