Ah - my mistake. That doesn't work at all - although I do now have it
working. Not sure what the original problem was unfortunately :-)

Now trying to find a way to hide all of my markers in streetview
without the slow process of looping through each enable/disabling
it :-)




On May 29, 5:18 pm, dbrb2 <[email protected]> wrote:
> Ah - I've answered my own question.
>
> In addition to:
> panorama.setVisible(true);
>
> I have to call
>
> panorama.setZIndex(100);
>
> To bring the streetview above the map :-)
>
> On May 29, 4:06 pm, dbrb2 <[email protected]> wrote:
>
>
>
> > Hello,
>
> > Apologies if this is documented somewhere already - I haven't found it
> > if it is!
>
> > I have a map here:
>
> >http://bbarker.co.uk/cycleHire
>
> > I am trying, initially, to get streetview to load immediately on page
> > load - with a small "x" in the top right hand corner. To that end I
> > have:
>
> > var latlng = new google.maps.LatLng(51.511589,-0.132043);
> >                 var myOptions = {
> >                         mapTypeId: google.maps.MapTypeId.ROADMAP,
> >                         mapTypeControl: true,
> >                         streetViewControl: true,
>
> >                         mapTypeControlOptions: {
> >                                 style:
> > google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
> >                                 position:
> > google.maps.ControlPosition.TOP_RIGHT
> >                         }
> >                 };
>
> >                 var map = new
> > google.maps.Map(document.getElementById("map"), myOptions);
> >                 var panorama = map.getStreetView();
> >                 panorama.setOptions({
> >                         position: latlng,
> >                         navigationControlOptions: {
> >                                 position:
> > google.maps.ControlPosition.TOP_LEFT,
> >                                 style:
> > google.maps.NavigationControlStyle.ZOOM_PAN
> >                         }
> >                 });
> >                 panorama.setVisible(true);
>
> > I thought that last line should bring the streetview up - but it
> > doesn't. I suspect I am doing something very basic wrong, but any
> > suggestions would be welcome.
>
> > Thanks,
>
> > Ben

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