|
|
第1行: |
第1行: |
− | <html> | + | '''说明:'''您看到的本页可能不是最新内容,现在看到的内容缓存生成时间为2010年9月26日 (日) 15:09 (CST),如果希望查看当前最新信息,请点击:<html><a href="http://</html>{{SERVERNAME}}/index.php?title={{FULLPAGENAMEE}}&action=purge<html>"><u>刷新</u></a></html>。[[分类:无缓存]] |
− | <script src="http://ditu.google.cn/maps?file=api&v=2.x&key=ABQIAAAAsec4RV8oAB2Dy0WfBAQeBRSeF8OSOK12RnhJK901ydzsR0THTBRE8kQzmJpyswMlPPfG9sTs3NQYLA&hl=zh-CN" type="text/javascript"></script>
| |
− | <script type="text/javascript">
| |
− |
| |
− | var map = null;
| |
− | var geocoder = null;
| |
− |
| |
− | function initialize() {
| |
− | if (GBrowserIsCompatible()) {
| |
− | map = new GMap2(document.getElementById("map_canvas"));
| |
− | geocoder = new GClientGeocoder();
| |
− | showAddress(address);
| |
− | }
| |
− | }
| |
− |
| |
− | function showAddress(address) {
| |
− | if (geocoder) {
| |
− | geocoder.getLatLng(
| |
− | address,
| |
− | function(point) {
| |
− | if (!point) {
| |
− | map.setCenter(new GLatLng(35, 104), 2);
| |
− | map.openInfoWindow(map.getCenter(),
| |
− | document.createTextNode("不能解析地址:"+address));
| |
− | map.addControl(new GLargeMapControl());
| |
− | map.addControl(new GMapTypeControl());
| |
− | } else {
| |
− | map.setCenter(point, </html>{{#if:{{{3|}}}|{{{3}}}|10}}<html>);
| |
− | var marker = new GMarker(point);
| |
− | map.addOverlay(marker);
| |
− | marker.openInfoWindowHtml("地址:"+address+"<br>"+display);
| |
− | map.addControl(new GLargeMapControl());
| |
− | map.addControl(new GMapTypeControl());
| |
− | }
| |
− | }
| |
− | );
| |
− | }
| |
− | }
| |
− | </script>
| |
− |
| |
− | <body onload="initialize()" onunload="GUnload()">
| |
− | <script type="text/javascript">
| |
− | var address = "</html>{{{1}}}<html>";
| |
− | var display = "</html>{{{2}}}<html>";
| |
− | </script>
| |
− | <div id="map_canvas" style="width: 360px; height: 280px">正在载入地图,请稍等...</div>
| |
− | </body>
| |
− | </html> | |
2010年9月26日 (日) 15:09的版本
说明:您看到的本页可能不是最新内容,现在看到的内容缓存生成时间为2010年9月26日 (日) 15:09 (CST),如果希望查看当前最新信息,请点击:刷新。