title: Google map API v3: load huge polygon (region boundary)
body: <p>I am working this issue: loading huge polygon on google map API v3. It is administrative boundary of a country or a region, that's why it is huge, a lot of vertices. I have tried 02 options:</p>
  
  <ol>
  <li>Draw the polygon from the defined paths: this is very slow</li>
  <li>Using google FusionTableLayer, this is fast, the problem is that in certain cases Google's boundary data is not correct or insufficient and I want to use my own data. Is it possible to tweak Google FusionTableLayer to get data from my own source. E.g some pseudo-code like this:</li>
  </ol>
  
  
  
  <pre><code>var layer = new google.maps.FusionTableLayer(tableid, options);
  layer.setData(owndata); // instead of layer.setQuery(query) to get data from Google
  </code></pre>
  
  <p>Is it possible to do this hack? Can anyone give me a tip? Thank you very much.</p>
  
  <p>Code excerpt:</p>
  
  <pre><code>var paths=[]; 
  
  var vlist=[.............]; //long list of lon,lat saved in .txt file which may size up to 1.3 Mb 
  
  for(var j=vlist.length-1;j&gt;0;j-=2){ 
  paths.push(new google.maps.LatLng(vlist[j],vlist[j-1])) 
  } 
  
  var poly = new google.maps.Polygon({paths:paths,...}); 
  
  poly.setMap(mymap); 
  thePolygons.push(poly); 
  
  //more polygons, some sparse areas with a lot of islands, the number of polygons may run to 1000
  </code></pre>
  
  <p>//....</p>