@Larry : yes I understand the global thing...but how can i access the
img (id=streetpicto)
in the infowindow of the good marker ?
document.getElementById("streetpicto").style.visibility = "visible"
-> undefined
thanks again !
Aurélie
On 16 avr, 15:52, "[email protected]" <[email protected]> wrote:
> On Apr 16, 6:26 am, Or3 <[email protected]> wrote:
>
> > Ok I try your solution Larry, and put mymarkerconstruction in the
> > addListener, but now nomarkerappear....
>
> The issue with your implementation is that it will only work
> (potentially, I didn't look carefully) when you get an "error" event
> on the myPano object.
>
> Probably you will need to make the infoWindow and update it if you get
> the error back (as I think Rossko suggested also).
>
> -- Larry
>
>
>
>
>
> >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.-Hide quoted text -
>
> > - Show quoted text -
>
> --
> 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.