Merci beaucoup ;) On 2 juin, 11:24, Marc Ridey <[email protected]> wrote: > Tu peux maintenant verifier si un panorama est disponible. > Essaie ce code: > > var streetViewLocation = new google.maps.LatLng(-33.867386, > 151.195767); > > var nearestLatLng = null; > var nearestPano = null; > var client = new google.maps.StreetViewService(); > client.getNearestPanorama(streetViewLocation, 50, function(result, > status) { > if (status == google.maps.StreetViewStatus.OK) { > nearestPano = result.location.pano; > nearestLatLng = result.location.latLng; > } > > }); > > La fonction getNearestPanorama doit avoir un LatLng, une distance en > metres et une fonction pour la reponse. > > Marc > > On May 29, 5:08 pm, piep14 <[email protected]> wrote: > > > > > Ah ok, j'ai passé deux jours a chercher lol Je comprend mieux pourquoi > > je ne trouvais pas. > > Je ne vois pas votre message dans > > :http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype... > > > Sinon, vous penses que ca sera actif quand ? > > Merci > > > On May 29, 2:47 am, Marc Ridey <[email protected]> wrote: > > > > Ha, je comprends. Nous n'avons pas encore publier l'access a > > > StreetViewClient. > > > J'ajoute une entree > > > ahttp://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype... > > > > <http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype...> > > > Marc > > > > On Sat, May 29, 2010 at 2:28 AM, piep14 <[email protected]> wrote: > > > > Bonjour Marc, > > > > > Je vais vous montrer avec un exemple qui est en version 2. > > > > >http://www.justacote.com/paris-75006/restaurant/le-relais-louis-13-62... > > > > > Sous la carte, vous voyez apparaitre "vue à 360°". Ce message ne doit > > > > s'afficher seulement si la StreetView est disponible. Au quel cas, on > > > > n'affiche pas ce lien. > > > > > Ceci est le premier point. > > > > > Ensuite, si vous cliquer sur "vue à 360°", vous verez apparaitre la > > > > vue StreetView dans une nouvelle fenêtre. Je vous met directement le > > > > lien > > > >http://www.justacote.com/view_street.php?ID_ENTREPRISE=1091550 > > > > > Voilà, j'espère avoir été plus clair ;) > > > > > Merci beaucoup de votre aide > > > > > On 28 mai, 01:03, Marc Ridey <[email protected]> wrote: > > > > > Bonjour piep14, > > > > > > Pourrais-tu m'expliquer un peu plus ce que tu veux faire? > > > > > Veux-tu afficher un marker sur la carte quand StreetView est > > > > > disponible? > > > > > Veux-tu afficher un marjker dans StreetView? > > > > > > Merci > > > > > > Marc > > > > > > On Fri, May 28, 2010 at 2:52 AM, piep14 <[email protected]> wrote: > > > > > > Bonjour, je suis français, je poste la traduction à la suite. > > > > > > J'avais > > > > > > fait ce code en version 2 et je souhaite maintenant l'adapter en > > > > > > version 3: > > > > > > Il permettait d'afficher un lien que lorsque la vue googleviewstreet > > > > > > était possible. Je n'arrive pas à le faire avec la version 3. > > > > > > Pourriez- > > > > > > vous m'aider ? > > > > > > Merci > > > > > > ------- > > > > > > Hello, I am French, I post the translation later. I had this code in > > > > > > version 2 and now I want to adapt it in version 3 : > > > > > > It allowed you to display a link to where the googlestreetviewwas > > > > > > possible. I can not do with version 3. Could you help me? > > > > > > Thank you > > > > > > > function load() { > > > > > > if (GBrowserIsCompatible()) { > > > > > > var icon = new GIcon(); > > > > > > icon.image = "<?php echo lien_icone2($id_entreprise, > > > > > > $res_pro['id_metier']);?>"; > > > > > > icon.iconSize = new GSize(23, 34); > > > > > > icon.iconAnchor = new GPoint(6, 34); > > > > > > icon.infoWindowAnchor = new GPoint(5, 1); > > > > > > var myPano; > > > > > > var map = new GMap2(document.getElementById("map")); > > > > > > var point = new GLatLng('<?php echo > > > > $res_pro['lat'];?>','<?php echo > > > > > > $res_pro['lon'];?>'); > > > > > > panoramaOptions = { latlng:point }; > > > > > > myPano = new > > > > > > GStreetviewPanorama(document.getElementById("pano").innerHTML = "<a > > > > > > style='font-size:10px;cursor : pointer;' href='javascript:void(0)' > > > > > > onclick=\"javascript:window.open('http://www.justacote.com/ > > > > > > view_street.php?ID_ENTREPRISE=<?php echo $res_pro['id_entreprise']? > > > > > >>',null,'width=800,height=600, status=no, directories=no, toolbar=no, > > > > > > location=no, menubar=no, scrollbars=no, resizable=yes');\"><img > > > > > > src='http://www.justacote.com/images/general/vue360.png'alt='Vue360' > > > > > > class='no-bord' /><\/a><br /><br />", panoramaOptions); > > > > > > GEvent.addListener(myPano, "error", handleNoFlash); > > > > > > map.setCenter(point, 16); > > > > > > var marker = new GMarker(point,icon); > > > > > > map.addOverlay(marker); > > > > > > } > > > > > > } > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups "Google Maps JavaScript APIv3" group. > > > > > > To post to this group, send email to > > > > [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-maps-js-api-v3%2B > > > > [email protected]> > > > > . > > > > > > For more options, visit this group athttp:// > > > > groups.google.com/group/google-maps-js-api-v3?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google Maps JavaScript APIv3" group. > > > > To post to this group, send email to > > > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-maps-js-api-v3%2B > > > > [email protected]> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
-- 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 [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-js-api-v3?hl=en.
