오늘 :
1,353 / 5,383
어제 :
13,011 / 144,897
전체 :
19,662,312 / 272,669,951

Open API 공부

Naver, Daum, Google Open API

추천 수 : 17 / 0
조회 수 : 27961
2007.11.30 (14:07:45)


http://www.subkorea.com/api/google/MapsAPI/directions-simple.htm방향제시

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <title>Google Maps JavaScript API Example: Simple Directions</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src="http://maps.google.com/maps?file=api&v=2.x&key=abc...xyz"
      type="text/javascript"></script>
    <script type="text/javascript">
        // Create a directions object and register a map and DIV to hold the
    // resulting computed directions

    var map;
    var directionsPanel;
    var directions;

    function initialize() {
      map = new GMap2(document.getElementById("map_canvas"));
      map.setCenter(new GLatLng(42.351505,-71.094455), 15);
      directionsPanel = document.getElementById("route");
      directions = new GDirections(map, directionsPanel);
      directions.load("500 Memorial Drive, Cambridge, MA to Fenway Park, Boston, MA");
    }
    </script>
  </head>

  <body onload="initialize()">
    <div id="map_canvas" style="width: 70%; height: 480px; float:left; border: 1px solid black;"></div>
    <div id="route" style="width: 25%; height:480px; float:right; border; 1px solid black;"></div>
    <br/>
  </body>
</html>

번호 제목 닉네임 등록일 조회 추천
52 marker-maptips2 첨부 파일
cyber
2007-11-30 14301 9
51 markermanager-googleoffices 첨부 파일
cyber
2007-11-30 14474 11
50 icon-simple 첨부 파일
cyber
2007-11-30 15682 14
49 marker-tabbed 첨부 파일
cyber
2007-11-30 15877 12
48 marker-window 첨부 파일
cyber
2007-11-30 16430 16
47 tile-detector 첨부 파일
cyber
2007-11-30 16581 8
46 marker-3exp 첨부 파일
cyber
2007-11-30 17029 16
45 marker-simple 첨부 파일
cyber
2007-11-30 17138 10
44 event-removal 첨부 파일
cyber
2007-11-30 17173 16
43 groundoverlay-simple 첨부 파일
cyber
2007-11-30 17205 12
Tag List