On Sep 1, 6:49 am, Hemant <[email protected]> wrote:
> Hello
> I want to split map. At top want to display google street view map if
> available and at the bottom want to display live map as its showing in
> google map when we search for google map.
> I am using Google Maps JavaScript API v3
Define a div for the map and another div for the streetview, then have
something like this after your map has initialised:
var panorama //define in global scope
var panoramaOptions = {
enableCloseButton: true,
visible: true
};
panorama = new
google.maps.StreetViewPanorama(document.getElementById("yourstreetviewdiv"),panoramaOptions);
//
Create the main Street View Panorama object.
map.setStreetView(panorama); //bind it to the map to override the
default one.
The positioning and sizing of the divs is up to you of course.
--
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.