walkleytesting

Google Maps

Google Map and Street View

//<![CDATA[

function load() {
if (GBrowserIsCompatible()) {
var lat = -33.867141;
var lng = 151.207114;

var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(lat,lng), 15);

var infoTabs = [
new GInfoWindowTab("Address", "Sydney
NSW, Australia”),
];

// Place a marker in the center of the map and open the info window
var marker = new GMarker(map.getCenter());
GEvent.addListener(marker, “click”, function() {
marker.openInfoWindowTabsHtml(infoTabs);
});
map.addOverlay(marker);
marker.openInfoWindowTabsHtml(infoTabs);

var point = new GLatLng(lat,lng);
panoramaOptions = { latlng:point };
pano = new GStreetviewPanorama(document.getElementById(“streetview”), panoramaOptions);
GEvent.addListener(pano);

}
}

//]]>

Google Map

Street View

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: