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