오늘 :
6,671 / 57,002
어제 :
9,122 / 88,106
전체 :
19,546,733 / 271,605,571

Open API 공부

Naver, Daum, Google Open API

cyber
추천 수 : 11 / 0
조회 수 : 27389
2007.11.30 (14:02:53)


http://www.subkorea.com/api/google/MapsAPI/geo-xml.htmlxml 이용 지역별 색깔 달리하기 다각형개념 이용

<!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>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Google Maps</title>
    <script src="http://maps.google.com/maps?file=api&v=2&key=abc...xyz" type="text/javascript"></script>
  </head>
  <body onunload="GUnload()">


    <div id="map" style="width: 768px; height: 512px"></div>
    <a href="geoxml.htm">Back to the tutorial page</a>
    <br><input type="button" value="hide" onclick="map.removeOverlay(kml)">
        <input type="button" value="show" onclick="map.addOverlay(kml)">

    <noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b>
      However, it seems JavaScript is either disabled or not supported by your browser.
      To view Google Maps, enable JavaScript by changing your browser options, and then
      try again.
    </noscript>


    <script type="text/javascript">
    //<![CDATA[
    
    if (GBrowserIsCompatible()) {



      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(53.763325,-2.579041), 9);

      // ==== Create a KML Overlay ====
    
      var kml = new GGeoXml("http://econym.googlepages.com/lancashire.kml");
      map.addOverlay(kml);


    }
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }

    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/  
    // http://econym.googlepages.com/index.htm

    //]]>
    </script>
  </body>

</html>

번호 제목 닉네임 등록일 조회 추천
52 marker-scroll 첨부 파일
cyber
2007-12-03 27544 20
51 directions-advanced 첨부 파일
cyber
2007-11-30 27542 23
50 directions-simple 첨부 파일
cyber
2007-11-30 27872 17
49 trafficOverlay 첨부 파일
cyber
2007-11-30 28248 33
Selected geo-xml 첨부 파일
cyber
2007-11-30 27389 11
47 geoxml-kml 첨부 파일
cyber
2007-11-30 32392 11
46 geoxml-rss 첨부 파일
cyber
2007-11-30 24833 14
45 geocoding-cache 첨부 파일
cyber
2007-11-30 25820 21
44 geocoding-extraction 첨부 파일
cyber
2007-11-30 19975 15
43 geocoding-simple 첨부 파일
cyber
2007-11-30 24766 12
Tag List