What to do when GMap Satellite imagery is unavailable

Posted by robstenson on Stack Overflow See other posts from Stack Overflow or by robstenson
Published on 2010-03-20T21:01:31Z Indexed on 2010/03/21 15:41 UTC
Read the original article Hit count: 392

Hello-- is it possible to programmatically detect with the google maps api (javascript, v2) when satellite imagery is unavailable at a certain zoom level? I am creating some maps automatically and setting them to a certain zoom level, but in a few cases there is no satellite imagery available at that level, in which case I'd like to automatically back up a zoom level. Does the api expose some way of determining this lack of imagery?

So far the only thing I can think of is trying to find out, with javascript, whether or not the image requests that the api makes are failing, and then reacting based on those failed image requests, but I can't really get it to work... and it seems a little inelegant. Thanks for your help!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google-maps-api