Please  i  have  this  function  that  is  moving  a object
(example : " a car")  across   a   route    with  driving
directions   and  i  would  like  to  save   a   link  to  the image
and   currentLatLng   streetview     when   the  movement   stop.

 function moveCar() {
      currentLatLng = panoMetaData.latlng;
      carMarker.setLatLng(currentLatLng);
      map.panTo(currentLatLng);

      svClient.getNearestPanorama(panoMetaData.latlng,
function(svData) {

       if (svData.code == 500) {
         /* Server error. Retry once a second */
          setTimeout("moveCar()", 1000);
        } else if (svData.code == 600) {
         /* No panorama. Should never happen as we have
          * already loaded this panorama in the Flash viewer.
          */
          jumpToVertex(nextVertexId);
        } else {
          panoMetaData.links = svData.links;
          checkDistanceFromNextVertex();
          if (driving) {
            advanceTimer = setTimeout("advance()", advanceDelay *
1000);
          }
        }
      });
    }
 thanks.

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