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 = 'Nautica';
icon.image = 'http://google.webassist.com/google/markers/traditionalflat/nautica.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/nautica.gif';
icon.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/nautica_mozprint.png';
icon.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
icon.transparent = 'http://google.webassist.com/google/markers/traditionalflat/nautica_transparent.png';
var address_0 = {
street: '1705 Baker Place',
city: 'Bluffton',
state: 'IN',
zip: '46714',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Bluffton North:
1705 Baker Place
Bluffton, IN 46714
(260) 824-5001',
full: '1705 Baker Place, Bluffton, IN, 46714, USA',
isdefault: false
};
geocoder.getLatLng (
address_0.full,
function(point) {
if(point) {
map.setCenter(point, 9);
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), 9);
}
}
);
var address_1 = {
street: '1717 South Harrison Plaza',
city: 'Bluffton',
state: 'IN',
zip: '46714',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Bluffton South:
1717 South Harrison Plaza
Bluffton, IN 46714
(260) 824-1190',
full: '1717 South Harrison Plaza, Bluffton, IN, 46714, USA',
isdefault: false
};
geocoder.getLatLng (
address_1.full,
function(point) {
if(point) {
map.setCenter(point, 9);
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), 9);
}
}
);
var address_2 = {
street: '450 Bennett Drive',
city: 'Warren',
state: 'IN',
zip: '46792',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Warren:
450 Bennett Drive
Warren, IN 46792
(260) 375-4550',
full: '450 Bennett Drive, Warren, IN, 46792, USA',
isdefault: false
};
geocoder.getLatLng (
address_2.full,
function(point) {
if(point) {
map.setCenter(point, 9);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_2.infowindowtext);
});
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 9);
}
}
);
var address_3 = {
street: '210 North 1st Street',
city: 'Van Buren',
state: 'IN',
zip: '46991',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Van Buren:
210 North 1st Street
Van Buren, IN 46991
(765) 934-3800',
full: '210 North 1st Street, Van Buren, IN, 46991, USA',
isdefault: false
};
geocoder.getLatLng (
address_3.full,
function(point) {
if(point) {
map.setCenter(point, 9);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_3.infowindowtext);
});
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 9);
}
}
);
var address_4 = {
street: '6751 West Jefferson Blvd',
city: 'Fort Wayne',
state: 'IN',
zip: '46804',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Fort Wayne:
6751 West Jefferson Blvd
Fort Wayne, IN 46804
(260) 434-0311',
full: '6751 West Jefferson Blvd, Fort Wayne, IN, 46804, USA',
isdefault: false
};
geocoder.getLatLng (
address_4.full,
function(point) {
if(point) {
map.setCenter(point, 9);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_4.infowindowtext);
});
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 9);
}
}
);
var address_5 = {
street: '2845 Guilford Street',
city: 'Huntington',
state: 'IN',
zip: '46750',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Huntington:
2845 Guilford Street
Huntington, IN 46750
(260) 358-9111',
full: '2845 Guilford Street, Huntington, IN, 46750, USA',
isdefault: false
};
geocoder.getLatLng (
address_5.full,
function(point) {
if(point) {
map.setCenter(point, 9);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_5.infowindowtext);
});
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 9);
}
}
);
var address_6 = {
street: '180 East Morse Street',
city: 'Markle',
state: 'IN',
zip: '46770',
country: 'USA',
infowindow: 'custom',
infowindowtext: 'Markle:
180 East Morse Street
Markle, IN 46770
(260) 758-3111',
full: '180 East Morse Street, Markle, IN, 46770, USA',
isdefault: true
};
geocoder.getLatLng (
address_6.full,
function(point) {
if(point) {
map.setCenter(point, 9);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_6.infowindowtext);
});
map.addOverlay(marker);
marker.openInfoWindowHtml(address_6.infowindowtext);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 9);
}
}
);
}
}