What to do if pictures from GMap memory cards are not available

Is it possible to programmatically determine using google maps api (javascript, v2) when satellite images are not available at a certain zoom level? I create several maps automatically and set them to a certain zoom level, but in some cases there are no satellite images at this level, in which case I would like to automatically back up the zoom level. Api reveals some way to identify this lack of images?

So far, the only thing I can think of is to find out, using javascript, whether the image requests api make requests and then responds to these failed image requests, but I can't get it to work ... and it seems a bit inelegant. Thank you for your help!

+3
source share
1 answer

Nevermind! Seems easy to fix: getMaxZoomAtLatLng

+1
source

Source: https://habr.com/ru/post/1737848/


All Articles