Mobile 한국어

Google API 공부

오늘 :
2,772 / 21,708
어제 :
2,961 / 34,853
전체 :
4,651,714 / 181,678,351

SubKorea 검색
모든 웹사이트 검색

Open API 공부

Naver, Daum, Google Open API

추천 수 : 17 / 0
조회 수 : 4228
2007.11.30 (14:07:45)방향제시

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns=""  xmlns:v="urn:schemas-microsoft-com:vml">
    <title>Google Maps JavaScript API Example: Simple Directions</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src=""
    <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");

  <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>

Tag List