var mapisset = false; var map; var mc; var center; var initzoom = 3 ; var infowindow = null; var ib = null; var marker = new Array(); var sites = [["Rescue Company 2","40.67081000","-73.91847000",0,"
Rescue Company 2<\/b> Brooklyn, NY, 2019<\/a><\/div>","12"],["MIRA","37.78976700","-122.39166400",1,"
MIRA<\/b> 2020
160 Folsom Street San Francisco<\/a><\/div>","1"],["Beloit Powerhouse","42.50303300","-89.03090500",2,"
Beloit Powerhouse<\/b> Beloit, WI, 2020<\/a><\/div>","5"],["Assemble Chicago","41.87758373","-87.62820493",3,"
Assemble Chicago<\/b> 2025
Plymouth Street and Van Buren<\/a><\/div>","104"],["Solar Carve","40.74187900","-74.00802700",4,"
Solar Carve<\/b> New York, NY, 2019<\/a><\/div>","60"],["Arkansas Museum of Fine Arts","34.73819100","-92.26632400",5,"
Arkansas Museum of Fine Arts<\/b> Little Rock, AR, 2022<\/a><\/div>","89"],["Writers Theatre","42.13514600","-87.75936900",6,"
Writers Theatre<\/b> Glencoe, IL, 2016<\/a><\/div>","48"],["Richard Gilder Center for Science, Education, and Innovation at the American Museum of Natural History","40.78157300","-73.97482600",7,"
Richard Gilder Center for Science, Education, and Innovation at the American Museum of Natural History<\/b> New York, NY, 2022<\/a><\/div>","88"],["Arbor","37.33769600","-121.89643000",8,"
Arbor<\/b> 2024
225 W Julian St
San Jose, CA 95110<\/a><\/div>","102"],["The St. Regis Chicago (Vista Tower)","41.88712000","-87.61780000",9,"
The St. Regis Chicago (Vista Tower)<\/b> 2021
363 E Wacker Dr, Chicago, IL 60601<\/a><\/div>","39"],["Tom Lee Park","35.13619500","-90.06346100",10,"
Tom Lee Park<\/b> Memphis, TN, 2023<\/a><\/div>","97"],["O\u2019Hare Global Terminal","41.97682500","-87.90479600",11,"
O\u2019Hare Global Terminal<\/b> Chicago, IL, 2028<\/a><\/div>","85"],["Populus","39.99396000","-104.80501000",12,"
Populus<\/b> 2023
14th Street & Court Place, Denver, CO<\/a><\/div>","96"],["Solstice on the Park","41.79339000","-87.58658000",13,"
Solstice on the Park<\/b> Chicago, IL, 2018<\/a><\/div>","31"],["One Delisle","43.68885800","-79.39471200",14,"
One Delisle<\/b> Toronto, Canada, 2024<\/a><\/div>","77"],["University of Kentucky College of Design","38.04239000","-84.50916000",15,"
University of Kentucky College of Design<\/b> 2022
349 Scott Street, Lexington, KY<\/a><\/div>","101"],["Kresge College Renewal at the University of California, Santa Cruz","36.99741500","-122.06656700",16,"
Kresge College Renewal at the University of California, Santa Cruz<\/b> 2023
510 Porter-Kresge Rd, Santa Cruz, CA 95064<\/a><\/div>","99"],["Baleinopolis: The Secret Societies of Cetaceans","48.83594100","2.40906500",17,"
Baleinopolis: The Secret Societies of Cetaceans<\/b> 2019
12 Avenue Armand Rousseau, 75012 Paris, France<\/a><\/div>","90"],["Arcus Center for Social Justice Leadership","42.29011600","-85.60385100",18,"
Arcus Center for Social Justice Leadership<\/b> Kalamazoo, MI, 2014<\/a><\/div>","3"],["Q Residences","52.32779600","4.86886200",19,"
Q Residences<\/b> Amsterdam, Netherlands, 2022<\/a><\/div>","68"],["University of Chicago Center in Paris Project","48.82846400","2.37830200",20,"
University of Chicago Center in Paris Project<\/b> Paris, France, 2022<\/a><\/div>","87"],["Eleanor Boathouse at Park 571","41.84330600","-87.66295400",21,"
Eleanor Boathouse at Park 571<\/b> Chicago, IL, 2016<\/a><\/div>","57"],["11 Hoyt","40.68994600","-73.98504700",22,"
11 Hoyt<\/b> Brooklyn, NY, 2021<\/a><\/div>","71"],["California College of the Arts","37.76867800","-122.39838400",23,"
California College of the Arts<\/b> 2022
111 Hooper St
San Francisco, CA 94107<\/a><\/div>","69"],["Crime Prevention Through Community Design and Problem-Solving","40.66308000","-73.90952800",24,"
Crime Prevention Through Community Design and Problem-Solving<\/b> New York, 2018<\/a><\/div>","79"],["Terraine","37.33960700","-121.89826200",25,"
Terraine<\/b> 2021
201 Bassett St., San Jose, CA<\/a><\/div>","105"],["Memphis Riverfront Concept","35.14486500","-90.05574700",26,"
Memphis Riverfront Concept<\/b> Memphis, TN, 2017<\/a><\/div>","64"],["Nature Boardwalk at Lincoln Park Zoo","41.91814200","-87.63256600",27,"
Nature Boardwalk at Lincoln Park Zoo<\/b> Chicago, IL, 2010<\/a><\/div>","26"],["University of Chicago Campus North Residential Commons","41.79474000","-87.59843600",28,"
University of Chicago Campus North Residential Commons<\/b> Chicago, IL, 2016<\/a><\/div>","36"],["Hive","38.89775200","-77.01761900",29,"
Hive<\/b> Washington, D.C., 2017<\/a><\/div>","62"],["Mission Rock Building F","37.77937900","-122.41843300",30,"
Mission Rock Building F<\/b> 2023
San Francisco, CA<\/a><\/div>","92"],["Bengt Sjostrom Starlight Theatre","42.30804000","-88.99585000",31,"
Bengt Sjostrom Starlight Theatre<\/b> Rockford, IL, 2003<\/a><\/div>","6"],["Tour Montparnasse","48.84213800","2.32195100",32,"
Tour Montparnasse<\/b> Paris, France, 2017<\/a><\/div>","67"],["City Hyde Park","41.80242400","-87.58914500",33,"
City Hyde Park<\/b> Chicago, IL, 2016<\/a><\/div>","10"],["Stone Stories","45.42879800","12.35808500",34,"
Stone Stories<\/b> Venice, Italy, 2018<\/a><\/div>","73"],["One Hundred","38.64257300","-90.26485500",35,"
One Hundred<\/b> 2020
100 North Kingshighway, St. Louis MO<\/a><\/div>","58"],["Neighborhood Schools Reuse Concept","35.14908600","-90.05271700",36,"
Neighborhood Schools Reuse Concept<\/b> Memphis, TN, 2018<\/a><\/div>","83"],["Garden in the Machine","41.83485000","-87.77065000",37,"
Garden in the Machine<\/b> Cicero, IL, 2012<\/a><\/div>","14"],["Harbor Point Residence","41.88538300","-87.61464600",38,"
Harbor Point Residence<\/b> Chicago, IL, 2014<\/a><\/div>","17"],["Arcus Center for Social Justice Leadership for FREESPACE","45.43485000","12.34990100",39,"
Arcus Center for Social Justice Leadership for FREESPACE<\/b> Venice, Italy, 2018<\/a><\/div>","74"],["Civic Commons","39.92468500","-75.23554700",40,"
Civic Commons<\/b> Philadelphia, PA, 2016<\/a><\/div>","50"],["Seaholm Waterfront Concept Study","30.26645400","-97.75263300",41,"
Seaholm Waterfront Concept Study<\/b> Austin, TX, 2018<\/a><\/div>","75"],["Maisonette","41.90580500","-87.62872200",42,"
Maisonette<\/b> Chicago, IL, 2009<\/a><\/div>","23"],["WMS Boathouse at Clark Park","41.94304300","-87.69425000",43,"
WMS Boathouse at Clark Park<\/b> Chicago, IL, 2013<\/a><\/div>","40"],["Port District Planning Study","43.01970300","-87.89188200",44,"
Port District Planning Study<\/b> Milwaukee, WI, 2015<\/a><\/div>","47"],["Solomon R. Guggenheim Foundation Headquarters","40.70973800","-74.01088600",45,"
Solomon R. Guggenheim Foundation Headquarters<\/b> New York, NY, 2017<\/a><\/div>","81"],["Aqua Tower","41.87811400","-87.62979800",46,"
Aqua Tower<\/b> Chicago, IL, 2010<\/a><\/div>","2"],["Stage Buoys","41.89161400","-87.60789900",47,"
Stage Buoys<\/b> Chicago, IL, 2017<\/a><\/div>","66"],["Working in America","41.87630100","-87.62820200",48,"
Working in America<\/b> Chicago, IL, 2016<\/a><\/div>","56"],["River Edge Ideas Lab","41.88256400","-87.63742500",49,"
River Edge Ideas Lab<\/b> Chicago, IL, 2017<\/a><\/div>","65"],["Royal College of Art Battersea Campus","51.47876000","-0.16919400",50,"
Royal College of Art Battersea Campus<\/b> London, United Kingdom, 2016<\/a><\/div>","72"],["Polis Station","41.85637800","-87.70871200",51,"
Polis Station<\/b> Chicago, IL, 2015<\/a><\/div>","46"],["The Conservation Center","41.88884000","-87.67469000",52,"
The Conservation Center<\/b> Chicago, IL, 2012<\/a><\/div>","35"],["50 Designers, 50 Ideas, 50 Wards","41.87811400","-87.62979800",53,"
50 Designers, 50 Ideas, 50 Wards<\/b> Chicago, IL, 2016<\/a><\/div>","51"],["Columbia College Chicago Media Production Center","41.85995200","-87.62769900",54,"
Columbia College Chicago Media Production Center<\/b> Chicago, IL, 2010<\/a><\/div>","11"],["PAHC Studio","41.88300600","-87.62473300",55,"
PAHC Studio<\/b> Chicago, IL, 2014<\/a><\/div>","28"],["SOS Children\u2019s Villages Lavezzorio Community Center","41.75598200","-87.63886000",56,"
SOS Children\u2019s Villages Lavezzorio Community Center<\/b> Chicago, IL, 2008<\/a><\/div>","32"],["Shoreland","41.79624000","-87.58175000",57,"
Shoreland<\/b> Chicago, IL, 2014<\/a><\/div>","29"],["Brick Weave House","41.89368900","-87.67215300",58,"
Brick Weave House<\/b> Chicago, IL, 2009<\/a><\/div>","8"],["National Aquarium Strategic Master Plan","39.28571800","-76.60829400",59,"
National Aquarium Strategic Master Plan<\/b> Baltimore, MD, 2015<\/a><\/div>","25"],["Northerly Island","41.85913400","-87.60840400",60,"
Northerly Island<\/b> Chicago, IL, 2015<\/a><\/div>","27"],["Ford Calumet Environmental Center","41.65188000","-87.55930000",61,"
Ford Calumet Environmental Center<\/b> Chicago, IL, 2011<\/a><\/div>","13"],["Midwest Offices, Natural Resources Defense Council","41.88237600","-87.63745100",62,"
Midwest Offices, Natural Resources Defense Council<\/b> Chicago, IL, 2013<\/a><\/div>","24"],["Thinning Ice","25.79490900","-80.13671700",63,"
Thinning Ice<\/b> Miami, FL, 2014<\/a><\/div>","53"],["Kaohsiung Maritime Cultural & Pop Music Center","22.62727800","120.30143500",64,"
Kaohsiung Maritime Cultural & Pop Music Center<\/b> Kaohsiung, Taiwan, 2011<\/a><\/div>","21"],["Chinese American Service League Kam Liu Center","41.85440000","-87.63559600",65,"
Chinese American Service League Kam Liu Center<\/b> Chicago, IL, 2004<\/a><\/div>","9"],["Blue Wall Center","34.92974800","-82.34518900",66,"
Blue Wall Center<\/b> Greenville County, SC, 2010<\/a><\/div>","7"],["Foreclosed: Rehousing the American Dream","40.76143300","-73.97762200",67,"
Foreclosed: Rehousing the American Dream<\/b> New York, NY, 2012<\/a><\/div>","63"],["Marble Curtain","38.89775200","-77.01761900",68,"
Marble Curtain<\/b> Washington, D.C., 2003<\/a><\/div>","55"],["Building: Inside Studio Gang Architects","41.87954700","-87.62372400",69,"
Building: Inside Studio Gang Architects<\/b> Chicago, IL, 2012<\/a><\/div>","54"],["Taipei Pop Music Center","25.03297000","121.56542000",70,"
Taipei Pop Music Center<\/b> Taipei, Taiwan, 2010<\/a><\/div>","34"],["Lyric Opera 60th Anniversary Concert Shell","41.88237600","-87.63745100",71,"
Lyric Opera 60th Anniversary Concert Shell<\/b> Chicago, IL, 2014<\/a><\/div>","22"],["IIT McCormick-Tribune Welcome Center","41.83538500","-87.62608100",72,"
IIT McCormick-Tribune Welcome Center<\/b> Chicago, IL, 2003<\/a><\/div>","20"],["Belden Loft","41.92481700","-87.69742800",73,"
Belden Loft<\/b> Chicago, IL, 1998<\/a><\/div>","4"]] var boxOptions = { alignBottom: true ,disableAutoPan: false ,maxWidth: 0 ,pixelOffset: new google.maps.Size(-150, -58) ,zIndex: null ,boxStyle: { background: "#fff", width: "270px", height: "auto", padding: "15px", borderRadius: "5px" } ,closeBoxMargin: "0px 0px 0px 0px" ,closeBoxURL: "/css/img/close.png" ,infoBoxClearance: 100 ,isHidden: false ,pane: "floatPane" ,enableEventPropagation: false }; var ib = new InfoBox(boxOptions); $(document).ready(function () { if ($("#map_canvas").length) { initializeMap(); } }); function find(thing, theArray) { var results, col, row, subArray; results = []; // Empty array for (row = 0; row < theArray.length; ++row) { subArray = theArray[row]; for (col = 0; col < subArray.length; ++col) { value = subArray[col]; if (value == thing) { // or whatever your criterion //results.push({row: row, col: col}); return row; } } } return results; } function initializeMap() { var myOptions = { zoom: initzoom ,mapTypeId: google.maps.MapTypeId.ROADMAP ,disableDefaultUI: true ,scrollwheel: false ,zoomControl: true ,zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL } ,maxZoom: 16 ,minZoom: 3 } var styleOptions = { name: "Dummy Style" }; var MAP_STYLE = [ {"featureType": "all", "stylers":[ {"saturation": 0}, {"hue": "#e7ecf0"} ] }, {"featureType": "road", "stylers":[ {"saturation": -70} ] }, {"featureType": "transit", "stylers":[ {"visibility": "off"} ] }, {"featureType": "poi", "stylers":[ {"visibility": "off"} ] }, {"featureType": "water", "stylers":[ {"visibility": "simplified"}, {"saturation": -60} ] } ]; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var mapType = new google.maps.StyledMapType(MAP_STYLE, styleOptions); map.mapTypes.set("Dummy Style", mapType); map.setMapTypeId("Dummy Style"); setMarkers(map, sites); mapisset = true; } function calculateCenter() { center = map.getCenter(); } function map_recenter(latlng,offsetx,offsety) { var point1 = map.getProjection().fromLatLngToPoint( (latlng instanceof google.maps.LatLng) ? latlng : map.getCenter() ); var point2 = new google.maps.Point( ( (typeof(offsetx) == 'number' ? offsetx : 0) / Math.pow(15, map.getZoom()) ) || 0, ( (typeof(offsety) == 'number' ? offsety : 0) / Math.pow(15, map.getZoom()) ) || 0 ); map.panTo(map.getProjection().fromPointToLatLng(new google.maps.Point( point1.x - point2.x, point1.y + point2.y ))); } function setMarkers(map, markers) { var custompin = { url: "/css/img/pin@2.png", // This marker is 20 pixels wide by 32 pixels high. size: new google.maps.Size(52, 90), scaledSize: new google.maps.Size(26,45), // the new size you want to use // The origin for this image is (0, 0). origin: new google.maps.Point(0, 0), // The anchor for this image is the base of the flagpole at (0, 45). //anchor: new google.maps.Point(105, 125) anchor: new google.maps.Point(0, 45) }; var bounds = new google.maps.LatLngBounds(); var markersclustered = []; var hash = ""; for (var i = 0; i < markers.length; i++) { var sites = markers[i]; var siteLatLng = new google.maps.LatLng(sites[1], sites[2]); marker[i] = new google.maps.Marker({ position: siteLatLng, icon: custompin, title: sites[0], zIndex: sites[3], html: sites[4], hash: sites[5] }); marker[i].setMap(map); bounds.extend(marker[i].position); var contentString = "Some content"; google.maps.event.addListener(marker[i], "click", function () { ib.setContent(this.html); ib.open(map, this); map_recenter(this.getPosition(),50,-150); setTimeout(function() { var imgw = $(".infoBox:visible .bubble img").width(); $(".infoBox:visible").css({ width: imgw, marginLeft: (270-imgw+3)/2 }); },10); }); markersclustered.push(marker[i]); } map.fitBounds(bounds); google.maps.event.addDomListener(window, 'resize', function() { map.setCenter(center); }); google.maps.event.addDomListener(map, 'idle', function() { calculateCenter(); }); google.maps.event.addListener(map, "click", function(event) { ib.close(); }); var clusterStyles = [ { textColor: 'white', url: '/css/img/pin@2.png', height: 45, width: 26, fontFamily: "DINround", fontWeight: "normal", textSize: 10, }, { textColor: 'white', url: '/css/img/pin@2.png', height: 45, width: 26, fontFamily: "DINround", fontWeight: "normal", textSize: 10, }, { textColor: 'white', url: '/css/img/pin@2.png', height: 45, width: 26, fontFamily: "DINround", fontWeight: "normal", textSize: 10, } ]; var mcOptions = { gridSize: 20, styles: clusterStyles, maxZoom: 15, enableRetinaIcons: true }; var mc = new MarkerClusterer(map, markersclustered, mcOptions); var listener = google.maps.event.addListener(map, "idle", function () { google.maps.event.trigger(map, 'resize'); google.maps.event.removeListener(listener); }); }