title: Vector tiles with Google Maps V3
body: <p>I have a bunch of very large polygons that I'd like to overlay on my Google map. I have a tile server that serves GeoJSON features, and which also takes care of the various geometric operations I need to make the app work (joining polygons, simplification to zoom level, tiling, etc).</p>
  
  <p>At present, we're just displaying the large polygons on the map as data layers, but ideally we'd be able to display simplified versions of the polygons at lesser zoom levels and increase their complexity inline with zoom level.</p>
  
  <p>My options seem to be:</p>
  
  <p><strong>1) Data Layers</strong>: hook into the various map change events and then add/remove from the map as appropriate (where adding would be fetching the appropriate tile). Difficulty here would be that there seem to be a lot of map change events and finding the smoothest way to achieve could take considerable effort. Plus, it feels as though I'm working against the data API here.</p>
  
  <p><strong>2) OverlayView</strong>: similar to the above, but as an absolute sized OverlayView (i.e. a full covering). The thinking would be that the overlay would listen to draw events, fetch the appropriate tile, and add/clean-up as required. This seems like it'd be a more predictable solution, but again there's a lot to it. </p>
  
  <p>I don't know enough about how maps works under-the-hood to provide much more insight, but my eventual solution (in so much as it helps) would be something that takes a tile server URL and then fits as smoothly as possible into how maps works to load the right tile, for the right zoom level (and given they're vector tiles, I could possibly also progressively enhance/degrade as zoom levels or position changed).</p>
  
  <p>Can anyone shed any insight? How would you approach it?</p>