views:

8

answers:

0

I'm using the Panoramio API to create a little photo widget like the one you see here at this link. My code sets some options up for retrieving photos, namely by creating a bounding box around a lat/long pair and then returning all photos w/in those bounds.

However, sometimes (depending on the coordinates), no photos are returned and my widget just appears with broken page links (small symbol). Anyone know how to check whether or not the api will in fact return data? I'd like to perhaps replace the contents of the div tag holding the widget w/some text saying 'no photos available'. Something like that...