Changeset 59 for oceandb


Ignore:
Timestamp:
Feb 18, 2009, 11:34:05 AM (15 years ago)
Author:
jazz
Message:
  • 加入 gmap key
Location:
oceandb/jQuery_Prototype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oceandb/jQuery_Prototype/index.html

    r57 r59  
    33<html xmlns="http://www.w3.org/1999/xhtml">
    44  <head>
     5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     6    <meta http-equiv="cache-control" content="must-revalidate" />
     7
    58    <title>台灣海洋資訊資料庫聯盟網 Taiwan Ocean Informatioan Database</title>
    69    <link rel="stylesheet" type="text/css" href="index.css" />
    710    <link rel="stylesheet" type="text/css" href="css/theme/ui.all.css" />
     11    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAREq2HXjZzIdAyVORbKBYMhTfzQKfMm5eNRoty1ZKt0XEeQdtXxTxlSH6lZOV7UEfIym3ft5_EnXXDw" type="text/javascript"></script>
    812    <script src="script/jquery.js"  language="javascript"></script>
    913    <script src="script/jquery-ui.js"  language="javascript"></script>
    1014    <script src="script/oceandb.js" language="javascript"></script>
    1115  </head>
    12   <body>
     16  <body onload="load()" onunload="GUnload()">
    1317    <div id="header">
    1418      <div id="main-menu">
  • oceandb/jQuery_Prototype/script/oceandb.js

    r57 r59  
    1414  $('#map-menu').accordion({ header: "h3" });
    1515});
     16
     17function load() {
     18  if (GBrowserIsCompatible()) {
     19    var map = new GMap2(document.getElementById("map"));  // 取得 DOM 中,名稱為 map 的元件
     20    map.addControl(new GLargeMapControl());               // 加入左上角比例尺規控制列
     21    map.addControl(new GScaleControl());                  // 加入左下角比例尺狀態列
     22    map.addControl(new GMapTypeControl());                // 加入右上角"地圖","衛星","混合地圖"按鈕
     23    map.setCenter(new GLatLng(23.8,121), 7);              // 設定預設經緯度北緯 23.8, 東經 121, 預設比例尺 100 公里(7)
     24    map.setMapType(G_SATELLITE_MAP);                      // 設定預設底圖為"衛星"
     25  }
     26}
Note: See TracChangeset for help on using the changeset viewer.