How to clear the images out of streetview

32 views
Skip to first unread message

spiderplant0

unread,
Feb 11, 2012, 6:11:07 PM2/11/12
to google-map...@googlegroups.com

I have a Google maps V3 website with streetview in a DIV that is separate from the map DIV. I use getPanoramaByLocation() to fetch images from supplied coordinates.
 
If getPanoramaByLocation() fails to find any images I want to clear the streetview DIV of any old images from a previous search (i.e. to avoid the user thinking that the old images are of the new location).
However I'd like to keep the greyed out controls (as you get on initial page load when the streetview doesnt contain any images). See attached image above. Is there a way to do this?

http://jsfiddle.net/spiderplant0/y9PSz/


 

Reply all
Reply to author
Forward
0 new messages