$(function(){ var map = new GMap2(document.getElementById('map')); var USA = new GLatLng(allied.office[0].GEO[1],allied.office[0].GEO[0]); map.setCenter(USA, 14); var pos = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(5, 20)); map.addControl(new GLargeMapControl(),pos); map.enableScrollWheelZoom();
//setup bubbles: var markers = []; count = 0; var nbubble = bubble(allied.office[0].NAME,allied.office[0].ADDRESS,allied.office[0].URL,allied.office[0].CONTACTDETAILS); var point = new GLatLng(allied.office[0].GEO[1],allied.office[0].GEO[0]); var customIcon = new GIcon(G_DEFAULT_ICON); customIcon.image ="http://www.beverlymaterials.com/sites/default/files/beverly_20.png"; customIcon.iconSize = new GSize(32,32); customIcon.iconAnchor = new GPoint(16, 32) customIcon.transparent = null customIcon.shadow=null; customIcon.imageMap = [0,0,32,32]; var markerOptions = {icon:customIcon} marker = new GMarker(point,markerOptions);
GEvent.addListener(marker, "click", function(){ var iwAnchor = marker.getIcon().infoWindowAnchor; var iconAnchor = marker.getIcon().iconAnchor; var offset = new GSize(iwAnchor.x-iconAnchor.x,iwAnchor.y-iconAnchor.y); map.openInfoWindowHtml(marker.getLatLng(), nbubble, {pixelOffset:offset}); map.panTo(marker.getLatLng()); }); var iwAnchor = marker.getIcon().infoWindowAnchor; var iconAnchor = marker.getIcon().iconAnchor; var offset = new GSize(iwAnchor.x-iconAnchor.x,iwAnchor.y-iconAnchor.y); map.openInfoWindowHtml(marker.getLatLng(), nbubble, {pixelOffset:offset}); map.panTo(marker.getLatLng());
map.addOverlay(marker);
map.openInfoWindowHtml(marker.getLatLng(), nbubble, {pixelOffset:offset}); });
Strategically located half way between the East Dundee Plant to the East and the Foster Road Plant to the West, in Kane County along the Huntley-Algonquin Road, this Pit has only begun to produce. Although owned and seasonally operated for nearly 20 year as a “borrow pit” location in years past, a major effort was undertaken in 2006 to erect a full scale processing plant complete with a wash plant and a dry crushing plant. Three fourths of the location’s reserves remain untouched and this location is merely waiting for the right projects to crop up in the neighborhood. Square Barn Road Pit was designed to provide construction aggregates to Ready Mixed Concrete and Hot Mixed Asphalt plants in the area as well as clean structural fill for area road projects.
|