Easy.... if the client view area has StreetView Pans, a image with
"Pegman" is showed on top-left corner of your web page.

svOverlay = new GStreetviewOverlay();
map.addOverlay(svOverlay);
GEvent.addListener(svOverlay, 'changed', HayVistas);


function HayVistas(hasStreetviewData) {
        if (hasStreetviewData)
                document.getElementById("pegman").style.visibility = 'visible';
        else
                document.getElementById("pegman").style.visibility = 'hidden';
}

in your html code

<img src="http://maps.gstatic.com/mapfiles/cb/man_arrow-0.png";
id="pegman" width=49 border=0 style="position:absolute;
visibility:hidden; top:0px; left:0px;">




---------- Forwarded message ----------
From: ara <[email protected]>
Date: 18 feb, 10:45
Subject: How to use hasStreetViewData?
To: Google Maps API


Hi all,

I need to know if a location has StreetView information to display a
link or not. I read the reference API document and it said that the
simplest way to do that is using the object GStreetViewOverlay with
the event changed. I guess to use thehasStreetViewDataparameter but
I don't know how to use it. Anyone can send me a code sample?

Thank's in advance.

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

Reply via email to