오늘 :
20,337 / 195,971
어제 :
20,121 / 226,058
전체 :
20,431,915 / 279,602,865

Open API 공부

Naver, Daum, Google Open API

추천 수 : 10 / 0
조회 수 : 19583
2007.11.30 (11:14:44)


http://www.subkorea.com/api/google/MapsAPI/event-arguments.htm지도 클릭시 중심좌표와 배율표시 (미국 - 줌레벨 0~19까지, 한국 - 줌레벨 서울18, 천안14까지), 콘트롤, 배율 (화살표만)

<!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 JavaScript API Example: Event Arguments</title>
    <script src="http://maps.google.com/maps?file=api&v=2&key=abc...xyz"
            type="text/javascript"></script>
    <script type="text/javascript">

                
    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);

        GEvent.addListener(map,"click", function(overlay,latlng) {    
          var myHtml = "The GLatLng value is: " + map.fromLatLngToDivPixel(latlng) + " at zoom level " + map.getZoom();
          map.openInfoWindow(latlng, myHtml);
        });
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
      }
    }

    </script>
  </head>
  <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
  </body>
</html>

번호 제목 닉네임 등록일 조회 추천
12 event-bind 첨부 파일
cyber
2007-11-30 19988 19
Selected event-arguments 첨부 파일
cyber
2007-11-30 19583 10
10 event-closure 첨부 파일
cyber
2007-11-30 20945 15
9 event-context 첨부 파일
cyber
2007-11-30 21080 17
8 event-simple 첨부 파일
cyber
2007-11-30 19626 19
7 map-distance 첨부 파일
cyber
2007-11-30 22100 19
6 map-range 첨부 파일
cyber
2007-11-30 18972 27
5 map-dualmap 첨부 파일
cyber
2007-11-30 18286 15
4 map-infowindow 첨부 파일
cyber
2007-11-30 18384 16
3 map-animate 첨부 파일
cyber
2007-11-30 18756 12
Tag List