Location: Difference between revisions
From HLT@INESC-ID
mNo edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<php> | <php> | ||
print "<script src=\" | print " | ||
<script type=\"text/javascript\" src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyArSvrf-pAIg5hbhc1duw5MWoAMxlOTPrg&sensor=false\"></script> | |||
<script type=\"text/javascript\">var contentStringALAMEDA = '<div class=\"googlemaps_window\">'+ '<b>Instituto Superior Técnico</b>' + '<div id=\"bodyContent7\">' + | |||
'<p><b>Campus Alameda</b>' + '<br/>' + 'Av. Rovisco Pais, 1049-001 Lisboa' + '<br/>' + 'Phone: +351 218 417 000' + '<br/>' + 'Fax: +351 218 499 242</p>' + '</div>' + '</div>'; var contentStringREDOL = '<div class=\"googlemaps_window\">'+ '<b>INESC ID Lisboa</b>' + '<div id=\"bodyContent7\">' + '<p>Rua Alves Redol 9, 1000-029 Lisboa' + '<br/>' + 'Phone: +351 213 100 313' + '<br/>' + 'Fax: +351 213 145 843</p>' + '</div>' + '</div>'; var contentStringTAGUSPARK = '<div class=\"googlemaps_window\">'+ '<b>Instituto Superior Técnico</b>' + '<div id=\"bodyContent7\">' + '<p><b>Campus Taguspark</b>' + '<br/>' + 'Avenida Professor Cavaco Silva, ' + '<br/>' + '2780-990 Porto Salvo' + '<br/>' + 'Phone: +351 214 233 200' + '<br/>' + 'Fax: +351 214 233 252' + '</p>' + '</div>' + '</div>'; var infowindow = new google.maps.InfoWindow(); function saldanha() { var mapOptions = { center: new google.maps.LatLng(38.736436,-9.14), zoom: 14, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById(\"map-canvas-saldanha\"), 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); }); } function initialize() { var mapOptions = { center: new google.maps.LatLng(38.736436,-9.21), zoom: 12, 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); }); } </script> | |||
<div style=\"background: red; width: 100%; height: 550px; border-style: solid; border-width: 1px; border-color: black;\" id=\"map-canvas-saldanha\"/> | |||
<script type=\"text/javascript\">saldanha();</script> | |||
<div style=\"background: red; width: 100%; height: 550px; border-style: solid; border-width: 1px; border-color: black;\" id=\"map-canvas\"/> | |||
<script type=\"text/javascript\">initialize();</script> | |||
"; | |||
</php> | </php> |
Latest revision as of 17:45, 18 February 2014
<php> print "
<script type=\"text/javascript\" src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyArSvrf-pAIg5hbhc1duw5MWoAMxlOTPrg&sensor=false\"></script>
<script type=\"text/javascript\">var contentStringALAMEDA = '
Campus Alameda' + '
' + 'Av. Rovisco Pais, 1049-001 Lisboa' + '
' + 'Phone: +351 218 417 000' + '
' + 'Fax: +351 218 499 242
'; var contentStringREDOL = '
Rua Alves Redol 9, 1000-029 Lisboa' + '
' + 'Phone: +351 213 100 313' + '
' + 'Fax: +351 213 145 843
'; var contentStringTAGUSPARK = '
Campus Taguspark' + '
' + 'Avenida Professor Cavaco Silva, ' + '
' + '2780-990 Porto Salvo' + '
' + 'Phone: +351 214 233 200' + '
' + 'Fax: +351 214 233 252' + '
'; var infowindow = new google.maps.InfoWindow(); function saldanha() { var mapOptions = { center: new google.maps.LatLng(38.736436,-9.14), zoom: 14, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById(\"map-canvas-saldanha\"), 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); }); } function initialize() { var mapOptions = { center: new google.maps.LatLng(38.736436,-9.21), zoom: 12, 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); }); } </script>
<script type=\"text/javascript\">saldanha();</script>
<script type=\"text/javascript\">initialize();</script> "; </php>