is StreetViewPanorama available here ?

189 views
Skip to first unread message

pec76

unread,
May 17, 2011, 2:28:45 AM5/17/11
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

Marc Ridey

unread,
May 17, 2011, 2:34:02 AM5/17/11
to google-map...@googlegroups.com
See http://blog.mridey.com/2010/11/using-streetviewservice-in-maps-api.html


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Cédric Pelloq1

unread,
May 18, 2011, 1:48:33 AM5/18/11
to Google Maps JavaScript API v3

pec76

unread,
Jun 5, 2011, 9:33:20 AM6/5/11
to Google Maps JavaScript API v3
Thanks you, has worked.

;-)

On 18 mai, 07:48, Cédric Pelloq1 <pell...@gmail.com> wrote:
> http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> 2011/5/17 pec76 <pell...@gmail.com>
Reply all
Reply to author
Forward
0 new messages