I don't see where you are setting the map center. I'm guessing tempPosition
is null when it's passed to StreetViewPanorama.
Can you explain what behavior you are trying to achieve.

Thanks

On Sat, Jun 12, 2010 at 12:37 AM, Nathan Raley <[email protected]> wrote:

> I am trying to add a street view in my program as I am migrating from v2 to
> v3.
>
> I have the following set up in my initialize function that runs after the
> page is loaded:
>
> map = new google.maps.Map(document.getElementById("map"),  mapOptions); //{
> googleBarOptions : { style : "new"} });
> DistanceTextBox = (document.getElementById("distancetext"));
> var tempPosition = map.getCenter();
>  var PanoOpts = {
>      position: tempPosition,
>      navigationControl: true,
>      addressControl: false,
>      zoom: 14
> };
>  myPano = new
> google.maps.StreetviewPanorama(document.getElementById("pano"), PanoOpts);
> map.setStreetView(myPano);
>
> I keep getting an object expected on the line where I create the new
> StreetviewPanorama.
>
> Any ideas?
>
> --
> 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