@Roosko : Thank your for your help, I try your solution too,
but I don't really understand where I have to but the
GEvent.addListener(myPano, "error", function(errorCode) {}
I don't know how to access the image in the infoWindow.
If my image id=streetpicto,
document.getElementById("streetpicto").style.visibility = "visible" ->
undefined....

oups....

Aurélie

On 16 avr, 15:26, Or3 <[email protected]> wrote:
> Ok I try your solution Larry, and put mymarkerconstruction in the
> addListener, but now nomarkerappear....
>
> http://www.eficiens-serving.com/pmu/points-vente/google.php?searchtxt...
>
> hummm...???
>
> On 16 avr, 14:41, "[email protected]" <[email protected]> wrote:
>
>
>
> > On Apr 16, 3:52 am, Or3 <[email protected]> wrote:
>
> > > Hi !
>
> > > I have a problem in this google maps script :
>
> > >http://www.eficiens-serving.com/pmu/points-vente/google.php?searchtxt...
>
> > > I display markers on the map, witch come from an xml.
> > > Once you click on themarker, you have an "infobubble",
> > > and in it, I have put a "streetview" picto (the little orange man),
> > > if you click on this picto, you will have thestreetviewpano.
>
> > > But I would like to hide this picto whenstreetviewisnotavailable
> > > for this point.
> > > I try, but the listener seemsnotto have the time to execute the
> > >streetviewcheck...
> > > as the "imgstreet" variable is undefined...
>
> > > I know how to display the message after "sorrystreetviewnot
> > >available", but I would like tonothave this picto if there is no
> > >streetview!
>
> > Thestreetviewrequest is asynchronous:
> > Part 2 Asynchronous I/Ohttp://econym.org.uk/gmap/async.htm
>
> > You need to arrange your code to either:
> > 1. put a first cut at the infoWindow up and fix it when the response
> > comes back
> > or
> > 2. wait for the response and do your infowindow processing in the
> > callback routine
>
> >   -- Larry
>
> > > ----line 2020 ------------
> > > //streetviewdispo ou non
> > > var myPano;
>
> > > var fenwayPark = new GLatLng(lat,lon);
> > > panoramaOptions = { latlng:fenwayPark };
> > > myPano = new GStreetviewPanorama(document.getElementById("pano"),
> > > panoramaOptions);
>
> > > GEvent.addListener(myPano, "error", function(errorCode) {
> > > if (errorCode == 600) {
> > >         var imgstreet="";
> > >  }
> > > else
> > >  {
> > >         var imgstreet="streetview";
> > >  }}
>
> > > );
> > > -----------
>
> > > Is anyone has the answer !?
>
> > > Thank you very much for your help,
>
> > > Aurélie
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/google-maps-api?hl=en.
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-maps-api?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/google-maps-api?hl=en.

-- 
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