Line 4: | Line 4: | ||
<script type=\"text/javascript\" src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyArSvrf-pAIg5hbhc1duw5MWoAMxlOTPrg&sensor=false\"></script> | <script type=\"text/javascript\" src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyArSvrf-pAIg5hbhc1duw5MWoAMxlOTPrg&sensor=false\"></script> | ||
<script type=\"text/javascript\">function initialize() { var contentStringALAMEDA = '<div class=\"googlemaps_window\">'+ '<h2 id=\"firstHeading7\" class=\"firstHeading\">Instituto Superior Técnico</h2>' + '<div id=\"bodyContent7\">' + | <script type=\"text/javascript\">function initialize() { var contentStringALAMEDA = '<div class=\"googlemaps_window\">'+ '<h2 id=\"firstHeading7\" class=\"firstHeading\">Instituto Superior Técnico</h2>' + '<div id=\"bodyContent7\">' + | ||
− | '<p><b>Campus Alameda</b>' + '<br/>' + 'Av. Rovisco Pais, 1049-001 Lisboa' + '<br/>' + 'Geral: (+351) 218 417 000' + '<br/>' + 'Fax: (+351) 218 499 242</p>' + '</div>' + '</div>'; var contentStringREDOL = '<div class=\"googlemaps_window\">'+ '<h2 id=\"firstHeading7\" class=\"firstHeading\">INESC ID Lisboa</h2>' + '<div id=\"bodyContent7\">' + '<p>Rua Alves Redol 9, 1000-029 Lisboa' + '<br/>' + 'Geral: (+351) 213 100 313' + '<br/>' + 'Fax: (+351) 213 XXX XXX</p>' + '</div>' + '</div>'; var contentStringTAGUSPARK = '<div class=\"googlemaps_window\">'+ '<h2 id=\"firstHeading7\" class=\"firstHeading\">Instituto Superior Técnico</h2>' + '<div id=\"bodyContent7\">' + '<p><b>Campus Taguspark</b>' + '<br/>' + 'Avenida Professor Cavaco Silva, ' + '<br/>' + '2780-990 Porto Salvo' + '<br/>' + 'Geral: (+351) 214 233 200' + '<br/>' + 'Fax: (+351) 214 233 252' + '</p>' + '</div>' + '</div>'; infowindow = new google.maps.InfoWindow(); var mapOptions = { center: new google.maps.LatLng(38.736436,-9.23), zoom: | + | '<p><b>Campus Alameda</b>' + '<br/>' + 'Av. Rovisco Pais, 1049-001 Lisboa' + '<br/>' + 'Geral: (+351) 218 417 000' + '<br/>' + 'Fax: (+351) 218 499 242</p>' + '</div>' + '</div>'; var contentStringREDOL = '<div class=\"googlemaps_window\">'+ '<h2 id=\"firstHeading7\" class=\"firstHeading\">INESC ID Lisboa</h2>' + '<div id=\"bodyContent7\">' + '<p>Rua Alves Redol 9, 1000-029 Lisboa' + '<br/>' + 'Geral: (+351) 213 100 313' + '<br/>' + 'Fax: (+351) 213 XXX XXX</p>' + '</div>' + '</div>'; var contentStringTAGUSPARK = '<div class=\"googlemaps_window\">'+ '<h2 id=\"firstHeading7\" class=\"firstHeading\">Instituto Superior Técnico</h2>' + '<div id=\"bodyContent7\">' + '<p><b>Campus Taguspark</b>' + '<br/>' + 'Avenida Professor Cavaco Silva, ' + '<br/>' + '2780-990 Porto Salvo' + '<br/>' + 'Geral: (+351) 214 233 200' + '<br/>' + 'Fax: (+351) 214 233 252' + '</p>' + '</div>' + '</div>'; infowindow = new google.maps.InfoWindow(); var mapOptions = { center: new google.maps.LatLng(38.736436,-9.23), zoom: 10, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById(\"map-canvas\"), mapOptions); var redol = new google.maps.LatLng(38.736436,-9.140646); var marker_redol = new google.maps.Marker({ position: redol, map: map, title: \"INESC ID - Alves Redol\", html: contentStringREDOL }); google.maps.event.addListener(marker_redol, 'click', function() { infowindow.close(); infowindow.setContent(this.html); infowindow.open(map, this); }); var alameda = new google.maps.LatLng(38.736862377801465, -9.13663387298584); var marker_alameda = new google.maps.Marker({ position: alameda, map: map, title: \"Instituto Superior Técnico - Campus Alameda\", html: contentStringALAMEDA }); google.maps.event.addListener(marker_alameda, 'click', function() { infowindow.close(); infowindow.setContent(this.html); infowindow.open(map, this); }); var taguspark = new google.maps.LatLng(38.74005918493525, -9.304969310760498); var marker_taguspark = new google.maps.Marker({position: taguspark, map: map, title: \"Instituto Superior Técnico - Campus Taguspark\", html: contentStringTAGUSPARK }); google.maps.event.addListener(marker_taguspark, 'click', function() { infowindow.close(); infowindow.setContent(this.html); infowindow.open(map, this); }); } /*google.maps.event.addDomListener(window, 'load', initialize); */ </script> |
<div style=\"float: right; background: red; width: 50%; height: 550px; border-style: solid; border-width: 1px; border-color: black;\" id=\"map-canvas\"/> | <div style=\"float: right; background: red; width: 50%; height: 550px; border-style: solid; border-width: 1px; border-color: black;\" id=\"map-canvas\"/> | ||
<script type=\"text/javascript\">initialize();</script> | <script type=\"text/javascript\">initialize();</script> |