Overlake Neuroscience Institute

‘); // $(‘.Tabnav li a[href=”#OfficeInformation”]’).parent(‘li’).unbind(‘click’).bind(‘click’, function(){ if ( $(‘.MicrosoftMap’).size()==0){ DoMap() } }); if ( $(‘#mapDiv’).is(‘:visible’) ) { DoMap(); } }); var map = null; var pinInfobox = null; var bboxes = []; // old key = AheuyCYrztw3K2SkCckERsr7H7u2VYg5ZD2leIN6FiY_uavC-_qbtMxdUYscxe5y mapKey = ‘AoyUdfggVHbMEl3ICsJZgy3G-0yS2qTadFVrqwY0DpdciHj5EAMRs8CMpWtSLlND’; function DoMap(){ var mapOptions = { credentials: mapKey, mapTypeId: Microsoft.Maps.MapTypeId.road, showScalebar: false, zoom: 7, center: new Microsoft.Maps.Location(47.584399766577576, -122.13088989257812), height: 400, width: 470 } map = new Microsoft.Maps.Map($(“#mapDiv”).get(0), mapOptions); // Hide the info box when the map is moved. // Microsoft.Maps.Events.addHandler(map, ‘viewchange’, mapViewChange); $(‘#LocationsDetail .ContactCol1 p’).each(function(){ var queryStr = $.trim( $(this).html().toLowerCase().replace(/.*/,”).replace(//g,’ ‘).replace(/#(?=.*s)[^s]+/,”).replace(/Suite (?=.*s)[^s]+/g,’ ‘).replace(/n/g,’ ‘).replace(/s+/g,’ ‘) ); FindLocation( queryStr ) // console.log(queryStr) }) function FindLocation(address){ var searchRequest = ‘http://dev.virtualearth.net/REST/v1/Locations/’ + address + ‘?output=json&jsonp=SearchServiceCallback&key=’+mapKey; var script = document.createElement(“script”); script.setAttribute(“type”, “text/javascript”); script.setAttribute(“src”, searchRequest); document.body.appendChild(script); } } // END DO MAP function SearchServiceCallback(result){ /***************************************************************/…


Link to Full Article: Overlake Neuroscience Institute

Pin It on Pinterest

Share This

Join Our Newsletter

Sign up to our mailing list to receive the latest news and updates about homeAI.info and the Informed.AI Network of AI related websites which includes Events.AI, Neurons.AI, Awards.AI, and Vocation.AI

You have Successfully Subscribed!