title: Google Maps v3 tileloaded Event
body: <p>I've been trying to create a "Loading Images" message while the tiles of the Google Map are being loaded. My implementation basically goes like this:</p>
  
  <ul>
  <li>When the <strong>maptypeid_changed</strong> or <strong>idle</strong> events fire, I display the loading message</li>
  <li>The loading message is removed as soon as the <strong>tilesloaded</strong> event fires</li>
  </ul>
  
  <p>The problems I'm facing are:</p>
  
  <ul>
  <li>When the tiles for a map are already loaded (say in the cache or from a previous panning operation), the <strong>tilesloaded</strong> event isn't fired. </li>
  <li>If the tiles for a map view aren't completely loaded and I change the map type, the <strong>tilesloaded</strong> event fires twice. I've put a workaround by setting a flag to see if a map type change is followed by a <strong>tilesloaded</strong> event, and if not, the code discards the first <strong>tilesloaded</strong> event it receives after receiving a <strong>maptypeid_changed</strong> event.</li>
  </ul>
  
  <p>Since there is no <strong>aretilesloaded</strong> function, is there anyway I can check if the tiles are already loaded before displaying the loading message. Also, is there anyway around the double firing of the <strong>tilesloaded</strong> event or will I have to use the discarding approach?</p>