오늘 :
12,961 / 144,056
어제 :
11,673 / 102,916
전체 :
19,660,909 / 272,663,727

Open API 공부

Naver, Daum, Google Open API

cyber
추천 수 : 14 / 0
조회 수 : 24904
2007.11.30 (13:59:18)


http://www.subkorea.com/api/google/MapsAPI/geoxml-rss.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>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps API Example : GGeoXml RSS Overlay</title>
    <script src="http://maps.google.com/maps?file=api&v=2&key=abc...xyz"
      type="text/javascript"></script>
    <script type="text/javascript">
  
    var map;
    var geoXml;
    var toggleState = 1;

        function initialize() {
            if (GBrowserIsCompatible()) {
              geoXml = new GGeoXml("http://api.flickr.com/services/feeds/groups_pool.gne?id=322338@N20&format=rss_200&georss=1");
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(49.496675,-102.65625), 3);
        map.addControl(new GLargeMapControl());
        map.addControl(new GLargeMapControl());
        map.addOverlay(geoXml);
            }
        }

        function toggleMyKml() {
            if (toggleState == 1) {
            map.removeOverlay(geoXml);
            toggleState = 0;
            } else {
                   map.addOverlay(geoXml);
            toggleState = 1;
            }
        }
    </script>
  </head>
  <body onload="initialize()">

    <div id="map_canvas" style="width: 640px; height: 480px; float:left; border: 1px solid black;"></div>
    </div>
    <br clear="all"/>
    <br/>
    <input type="button" value="Toggle Markers" onClick="toggleMyKml();"/>
    <br/>
  </body>
</html>

번호 제목 닉네임 등록일 조회 추천
52 geoxml-kml 첨부 파일
cyber
2007-11-30 32467 11
51 trafficOverlay 첨부 파일
cyber
2007-11-30 28361 33
50 directions-simple 첨부 파일
cyber
2007-11-30 27961 17
49 directions-advanced 첨부 파일
cyber
2007-11-30 27660 23
48 marker-scroll 첨부 파일
cyber
2007-12-03 27643 20
47 geo-xml 첨부 파일
cyber
2007-11-30 27467 11
46 geocoding-cache 첨부 파일
cyber
2007-11-30 25922 21
Selected geoxml-rss 첨부 파일
cyber
2007-11-30 24904 14
44 geocoding-simple 첨부 파일
cyber
2007-11-30 24837 12
43 map-distance 첨부 파일
cyber
2007-11-30 21539 19
Tag List