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 google view street > é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 google street view was > 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='Vue 360' > 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 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. > > -- 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.
