i need some more help struggling to add this, heres my code

this.initialize = function(){

    var fenway = new google.maps.LatLng(lat,lng);
    var mapOptions = {
      center: fenway,
      zoom: 14,
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      streetViewControl: true
    };
    var map = new
google.maps.Map(document.getElementById("map_canvas"), mapOptions);
    var panoramaOptions = {
      position: fenway,
      pov: {
        heading: 34,
        pitch: 10,
        zoom: 1
      }
    };
    var panorama = new
google.maps.StreetViewPanorama(document.getElementById("pano"),panoramaOptions);
    map.setStreetView(panorama);
};

On Sep 21, 2:04 pm, Erwin Quinto <[email protected]> wrote:
> Hi Lobas,
>
> Check the StreetViewStatus code of your "Street View Service Response".
>
> The status code may return one of the following values:
>
>     * OK indicates that the service found a matching panorama.
>     * ZERO_RESULTS indicates that the service could not find a matching
> panorama with the passed criteria.
>     * UNKNOWN_ERROR indicates that a Street View request could not be
> processed, though the exact reason is unknown.
>
> There is a documentation. Please 
> readhttp://code.google.com/apis/maps/documentation/javascript/services.ht...
>
> Here's an 
> examplehttp://code.google.com/apis/maps/documentation/javascript/examples/st...
>
> Regards,
> Erwin
>
> On Tue, Sep 21, 2010 at 4:29 PM, Lobas <[email protected]> wrote:
> > We have a long and lat stored in the database and our script gets this
> > information and creates a google map and a street view map, but if
> > there is no streetview for the long and lat we have how can we display
> > and error message? I cant find any documentation about this for V3,
> > wasnt it error code 600 in v2 or something?
>
> > --
> > 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]<google-maps-js-api-v3%[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.

Reply via email to