function wagt_map_1() {
if(GBrowserIsCompatible()) {
if(!document.getElementById('wagt_map_1')) return false;
var map = new GMap2(document.getElementById('wagt_map_1'));
map.enableContinuousZoom();
map.enableDoubleClickZoom();
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
var geocoder = new GClientGeocoder();
var icon = new GIcon();
var markerStyle = 'Google Traditional (flat)';
var markerColor = 'Desert Spice';
icon.image = 'http://google.webassist.com/google/markers/traditionalflat/desertspice.png';
icon.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
icon.iconSize = new GSize(34,35);
icon.shadowSize = new GSize(34,35);
icon.iconAnchor = new GPoint(9,23);
icon.infoWindowAnchor = new GPoint(19,0);
icon.printImage = 'http://google.webassist.com/google/markers/traditionalflat/desertspice.gif';
icon.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/desertspice_mozprint.png';
icon.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
icon.transparent = 'http://google.webassist.com/google/markers/traditionalflat/desertspice_transparent.png';
var address_0 = {
street: '168 Prep St. NW',
city: 'Orangeburg',
state: 'SC',
zip: '29118',
country: '',
infowindow: 'custom',
infowindowtext: 'OPS Lower Campus
Address:
168 Prep St. NW
Orangeburg, SC 29118',
full: '168 Prep St. NW, Orangeburg, SC, 29118',
isdefault: false
};
geocoder.getLatLng (
address_0.full,
function(point) {
if(point) {
map.setCenter(point, 13);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_0.infowindowtext);
});
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
);
var address_1 = {
street: '2651 North Road',
city: 'Orangeburg',
state: 'SC',
zip: '29118',
country: '',
infowindow: 'custom',
infowindowtext: 'OPS Upper Campus
Address:
2651 North Road
Orangeburg, SC 29118',
full: '2651 North Road, Orangeburg, SC, 29118',
isdefault: false
};
geocoder.getLatLng (
address_1.full,
function(point) {
if(point) {
map.setCenter(point, 13);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_1.infowindowtext);
});
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
);
}
}