Contact US
We are looking forward to your letter!
SNS
Renren: OAST
Ocean University
Postal Code: 266003
Address: 5 YuShan Road,Qingdao,Shandong.
(3 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<link rel="stylesheet" href="http://1.oucigem.sinaapp.com/oucigem2012-nav.css"><!--nav logo demo css--> | <link rel="stylesheet" href="http://1.oucigem.sinaapp.com/oucigem2012-nav.css"><!--nav logo demo css--> | ||
+ | <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.css" /> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | ||
+ | <script src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"></script> | ||
<!--person CSS --> | <!--person CSS --> | ||
<link rel="stylesheet" href="http://1.oucigem.sinaapp.com/ouc-igem-person.css"> | <link rel="stylesheet" href="http://1.oucigem.sinaapp.com/ouc-igem-person.css"> | ||
Line 263: | Line 265: | ||
margin-bottom:0; | margin-bottom:0; | ||
} | } | ||
+ | #map{ | ||
+ | height:400px; | ||
+ | width:600px; | ||
+ | margin-top:-470px; | ||
+ | left:390px; | ||
+ | } | ||
+ | |||
</style> | </style> | ||
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script> | <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script> | ||
- | + | <div id="map"></div> | |
- | + | ||
- | + | ||
Line 280: | Line 289: | ||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | ||
</script> | </script> | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
//创建和初始化地图函数: | //创建和初始化地图函数: | ||
function initMap(){ | function initMap(){ | ||
createMap();//创建地图 | createMap();//创建地图 | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
//创建地图函数: | //创建地图函数: | ||
function createMap(){ | function createMap(){ | ||
- | + | var map = L.map('map').setView([36.064,120.335], 13); | |
- | + | L.tileLayer('http://{s}.tile.cloudmade.com/8de93dc447924179857a0d0ad7121605/997/256/{z}/{x}/{y}.png', { | |
- | + | attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery ? <a href="http://cloudmade.com">CloudMade</a>', | |
- | + | maxZoom: 18 | |
+ | }).addTo(map); | ||
+ | var marker = L.marker([36.064,120.335]).addTo(map); | ||
} | } | ||
+ | initMap();//创建和初始化地图 | ||
- | + | var popup = L.popup(); | |
- | + | ||
- | + | function onMapClick(e) { | |
- | + | popup | |
- | + | .setLatLng(e.latlng) | |
- | + | .setContent("You clicked the map at " + e.latlng.toString()) | |
- | + | .openOn(map); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | ||
- | + | map.on('click', onMapClick); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
<div id="ouc-footer"> | <div id="ouc-footer"> |
We are looking forward to your letter!
Renren: OAST
Postal Code: 266003
Address: 5 YuShan Road,Qingdao,Shandong.