Location: Difference between revisions

From HLT@INESC-ID

mNo edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<php>
<php>
print "<script src=\"http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAiipWyrjj27U9JMBnqzAhKBRy0aIh4Aw9l5upTCWHrfmyWW9BTxTXBAH2m-5wlu8a5fw-q9XGF9QETg\" type=\"text/javascript\"></script><div id=\"map\" style=\"background: red; width: 100%; height: 550px; border-style: solid; border-width: 1px; border-color: black;\"></div><script type=\"text/javascript\">function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, \"click\", function() { marker.openInfoWindowHtml(html); }); return marker; } function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById(\"map\")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new GOverviewMapControl()); map.setCenter(new GLatLng(38.736436,-9.140646), 13); var ptl2f = new GLatLng(38.736436,-9.140646); var ptist = new GLatLng(38.736703,-9.139026);var mkl2f = createMarker(ptl2f,'<a href=\"http://www.l2f.inesc-id.pt/\">Spoken Language Systems Lab</a><br>Rua Alves Redol 9<br>1000-029 LISBOA<br>Portugal<br><br>Email: <a href=\"mailto:info@l2f.inesc-id.pt\">info@l2f.inesc-id.pt</a><br>Phone: +351 213 100 268<br>Fax: +351 213 145 843'); var mkist = createMarker(ptist,'<a href=\"http://www.ist.utl.pt/\">Instituto Superior Técnico</a><br>Avenida Rovisco Pais<br>1049-001 LISBOA<br>Portugal'); map.addOverlay(mkl2f); map.addOverlay(mkist); } } load();</script> <!-- <body onload=\"load()\" onunload=\"GUnload()\"> --><!-- </body> -->";
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 = '

'+ 'Instituto Superior Técnico' + '
' + '

Campus Alameda' + '
' + 'Av. Rovisco Pais, 1049-001 Lisboa' + '
' + 'Phone: +351 218 417 000' + '
' + 'Fax: +351 218 499 242

' + '
' + '

'; var contentStringREDOL = '

'+ 'INESC ID Lisboa' + '
' + '

Rua Alves Redol 9, 1000-029 Lisboa' + '
' + 'Phone: +351 213 100 313' + '
' + 'Fax: +351 213 145 843

' + '
' + '

'; var contentStringTAGUSPARK = '

'+ 'Instituto Superior Técnico' + '
' + '

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>