오늘 :
7,889 / 70,777
어제 :
9,122 / 88,106
전체 :
19,547,951 / 271,619,346

Open API 공부

Naver, Daum, Google Open API

cyber
추천 수 : 14 / 0
조회 수 : 24834
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 marker-scroll 첨부 파일
cyber
2007-12-03 27545 20
51 directions-advanced 첨부 파일
cyber
2007-11-30 27544 23
50 directions-simple 첨부 파일
cyber
2007-11-30 27873 17
49 trafficOverlay 첨부 파일
cyber
2007-11-30 28250 33
48 geo-xml 첨부 파일
cyber
2007-11-30 27391 11
47 geoxml-kml 첨부 파일
cyber
2007-11-30 32394 11
Selected geoxml-rss 첨부 파일
cyber
2007-11-30 24834 14
45 geocoding-cache 첨부 파일
cyber
2007-11-30 25820 21
44 geocoding-extraction 첨부 파일
cyber
2007-11-30 19976 15
43 geocoding-simple 첨부 파일
cyber
2007-11-30 24767 12
Tag List