$(document).ready(function(){ var DefaultZoomLevel = 9; if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GSmallMapControl()); //map.addControl(new GMapTypeControl()); map.addControl(new GOverviewMapControl()); map.setCenter(new GLatLng(42.993190, -73.671713), DefaultZoomLevel); var icon = new GIcon(); icon.shadow = ""; icon.image = "/images/MapIcons/Star_graphic.png"; icon.iconSize = new GSize(50, 50); icon.shadowSize = new GSize(0, 0); icon.iconAnchor = new GPoint(25, 25); icon.infoWindowAnchor = new GPoint(50, 0); // Beechwood var marker = new GMarker(new GLatLng(42.733593, -73.671134), icon); map.addOverlay(marker); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml('
Beechwood
2218 Burdett Avenue
Troy, NY 12180
(More Information)
'); }); GEvent.addListener(marker, "infowindowclose", function() { map.setCenter(new GLatLng(42.993190, -73.671713), DefaultZoomLevel); }); // Beverwyck var marker2 = new GMarker(new GLatLng(42.657685, -73.838807), icon); map.addOverlay(marker2); GEvent.addListener(marker2, "click", function() { marker2.openInfoWindowHtml('
Beverwyck
40 Autumn Drive
Slingerlands, NY 12159
(More Information)
'); }); GEvent.addListener(marker2, "infowindowclose", function() { map.setCenter(new GLatLng(42.993190, -73.671713), DefaultZoomLevel); }); // Glen Eddy var marker3 = new GMarker(new GLatLng(42.774823, -73.877709), icon); map.addOverlay(marker3); GEvent.addListener(marker3, "click", function() { marker3.openInfoWindowHtml('
Glen Eddy
One Glen Eddy Drive
Niskayuna, NY 12309
(More Information)
'); }); GEvent.addListener(marker3, "infowindowclose", function() { map.setCenter(new GLatLng(42.993190, -73.671713), DefaultZoomLevel); }); // The Glen at Hiland Meadows var marker4 = new GMarker(new GLatLng(43.352539, -73.642584), icon); map.addOverlay(marker4); GEvent.addListener(marker4, "click", function() { marker4.openInfoWindowHtml('
The Glen at Hiland Meadows
39 Longview Drive
Queensbury, NY 12804
(More Information)
'); }); GEvent.addListener(marker4, "infowindowclose", function() { map.setCenter(new GLatLng(42.993190, -73.671713), DefaultZoomLevel); }); // Hawthorne Ridge var marker5 = new GMarker(new GLatLng(42.618855, -73.695085), icon); map.addOverlay(marker5); GEvent.addListener(marker5, "click", function() { marker5.openInfoWindowHtml('
Hawthorne Ridge
30 Community Way
East Greenbush, NY 12061
(More Information)
'); }); GEvent.addListener(marker5, "infowindowclose", function() { map.setCenter(new GLatLng(42.993190, -73.671713), DefaultZoomLevel); }); } }); $(document).unload(function() { GUnload() });