I'm trying to display a loading message while the map is loading the image tiles. I have attached the function for displaying the message to the 'mapidle' & 'maptypeid_changed' event and the function for hiding it to the 'tilesloaded' event.
The functionality is working as required when it is triggered by the 'mapidle' function. But the problem arises when I change the map type while the tiles of the current map are being loaded. The problem is that the tilesloaded event fires two times. Once just after the map type is changed and once when the tiles have been loaded for the new map type. This doesn't happen if the tiles for the currently showing map have been completely loaded, only if the tiles are currently being loaded. Is this a feature or a bug? And is there any way to work around this without requiring very creepy use of flag variables? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
