pec76
unread,May 17, 2011, 2:28:45 AM5/17/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hello,
I am currently laoding a streeview panorama with the following code:
if (document.getElementById('gf_streetView')){
var panorama = new
google.maps.StreetViewPanorama(document.getElementById('gf_streetView'),
{navigationControl: true, enableCloseButton: false,addressControl:
false,linksControl: true,visible: true});
panorama.setPosition(markerArg.getPosition());
}
Actually if "markerArg.getPosition()" used in the setPosition method,
dont have any streetview a grey rectangle is drawn with the Streetview
controls. My goal is if no streetview is available, to show a text
like "No Streetview here".
How can I test the availability of the streetview ?
Thanks