½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > OPEN API > ±¸±ÛÁöµµAPI ¸¦ ÀÌ¿ëÇÏ¿© ȸ»ç¼Ò°³¿¡ Áöµµ ³Ö±â »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
CSS
html
mysql
jquery
image
API
Mobile
¸Þ´º
slide
°Ô½ÃÆÇ
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
±¸±ÛÁöµµAPI ¸¦ ÀÌ¿ëÇÏ¿© ȸ»ç¼Ò°³¿¡ Áöµµ ³Ö±â
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù OPEN API
´Ù¿î·Îµå Ƚ¼ö 2765 ȸ
°£´Ü¼³¸í ±¸±ÛÁöµµAPI
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

ȸ»ç ¼Ò°³ ÆäÀÌÁö¿¡¼­ ¾àµµ ¶Ç´Â ã¾Æ¿À½Ã´Â ±æ À»
±¸±Û Áöµµ API ¸¦ ÀÌ¿ëÇÏ¿© ³ªÅ¸³ªµµ·Ï Çغ¸°Ú½À´Ï´Ù.

»ùÇ÷ΠÆÄÀÏÀ» Çϳª ¾÷·Îµå ÇØ µÎ¾úÀ¸¸ç, ¼Ò½ºÆÄÀÏ ´Ù¿î·Îµå¸¦ Çϼż­ ´Ù¿î·Îµå ¹ÞÀ¸½Ã¸é µË´Ï´Ù.


±âº»ÀûÀ¸·Î ±¸±Û Áöµµ´Â

<!DOCTYPE html>
<html>
<head>
 <meta charset="euc-kr">
 <title>±¸±ÛÁöµµ ȸ»ç À§Ä¡</title>
 <script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
 <script>
  function initialize() {
   var myLatlng = new google.maps.LatLng(35.87110100714382, 128.60169690333006);
   var mapOptions = {
        zoom: 17,
        center: myLatlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
   }
   var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
  }
 </script>
</head>

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

À§ÀÇ ¼Ò½º¸¸ ÀÖÀ¸¸é ±¸±Û Áöµµ´Â ³ªÅ¸³³´Ï´Ù.

¾Æ·¡¿¡ body ű׾ȿ¡ div ű׿¡ width ¿Í height °¡ ÁöµµÀÇ °¡·Î ¼¼·Î Å©±âÀÔ´Ï´Ù.

Àû´çÇÑ °ªÀ» ÁÖ½Ã¸é µÇ¸ç

»ó´Ü¿¡

var myLatlng = new google.maps.LatLng(35.87110100714382, 128.60169690333006);

À§ÀÇ ¼Ò½º¿¡ ÇöÀç À§Ä¡¸¦ x, y ·Î ÁÂÇ¥°ªÀ» ³Ö¾îÁÖ½Ã¸é µË´Ï´Ù.

ÇöÀç ÁÖ¼Ò¿¡ ´ëÇÑ x, y ÁÂÇ¥ °ªÀº ¾Æ·¡ ¸µÅ©¿¡¼­ ¾òÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù.

http://openapi.map.naver.com/api/geocode.php?key=f32441ebcd3cc9de474f8081df1e54e3&encoding=euc-kr&coord=LatLng&query=´ë±¸Áß±¸µ¿Àε¿1°¡

À§¿Í °°ÀÌ ÁÖ¼Ò¸¦ ÀûÀ¸¸é xml ·Î x,y °ªÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.


À§ÀÇ ±âº»ÀûÀÎ ¼Ò½º¿¡¼­ ÇöÀç À§Ä¡¿¡ ´ëÇÑ ¸¶Ä¿¸¦ ÂïÀ¸½Ç·Á¸é

var marker = new google.maps.Marker({
             position: myLatlng,
             map: map,
             title: "´ë±¸½Ãû"
});

À§ÀÇ ¼Ò½º¸¦ var map ¾Æ·¡¿¡ Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù.



title ¿¡ ³»¿ëÀº ¸¶Ä¿¿¡ ¸¶¿ì½º¸¦ °¡Á®´Ù´ë¸é ³ªÅ¸³ª´Â À̸§ÀÔ´Ï´Ù.



¿©±â¿¡ Ãß°¡ÀûÀ¸·Î ¸¶Ä¿¸¦ Ŭ¸¯ÇÏ¸é ¸»Ç³¼±À» ¶ç¿ö °ü·Ã Á¤º¸¸¦ ¶ç¿ï¼öµµ ÀÖ½À´Ï´Ù.

var infowindow = new google.maps.InfoWindow(
           {
            content: "<h1>´ë±¸½Ãû</h1>",
            maxWidth: 300
           }
);

google.maps.event.addListener(marker, 'click', function() {
 infowindow.open(map, marker);
});

À§ÀÇ ¼Ò½º¸¦ Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù.

content ¿¡ ³»¿ëÀº ¸»Ç³¼± ¾ÈÀÇ ³»¿ëÀÔ´Ï´Ù. html ű׷ΠµðÀÚÀÎ Çϼŵµ µË´Ï´Ù.
maxWidth ´Â ¸»Ç³¼±ÀÇ ÃÖ´ë Å©±â Á¦ÇÑÀÔ´Ï´Ù. 300px ·Î Á¦ÇÑÀ» µÎ¾ú½À´Ï´Ù.





À§¿Í °°ÀÌ °£´ÜÇÑ ½ºÅ©¸³Æ®·Î ±¸±Û Áöµµ¸¦ ´Þ ¼ö ÀÖ½À´Ï´Ù.
¿Ï¼ºµÈ ¼Ò½º¸¦ ¼Ò½ºº¸±â¸¦ Ŭ¸¯ÇÏ¿© ´Ù¿î·Îµå ¹Þ¾Æº¸½Ã±â ¹Ù¶ø´Ï´Ù.


°¨»çÇÕ´Ï´Ù.


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
±×·±µ¥ Å°°ª¾øÀÌ ±×³É Àú ¼Ò½º¸¦ Ÿ¾÷ü ȨÆäÀÌÁö Á¦À۽à ¾àµµ·Î »ç¿ëÇصµ ÀúÀÛ±Ç °°Àº ¹ýÀûÀÎ ¹®Á¦¾øÀÌ ¿ÏÀüÈ÷ ¹«·áÀΰ¡¿ä? ±Ã±ÀÇÕ´Ï´Ù~ ²À ´äº¯ ºÎŹµå·Á¿ä~~
2014-05-27 10:32:26
dhepd
Âù¼º 102
¹Ý´ë 111
:¿ÕÇÏÇÏ: ¿ì¼± Á¤º¸ °¨»çÇÕ´Ï´Ù.
±×·±µ¥, ÇϳªÀÇ ¸¶Ä¿ Ç¥½Ã°¡ ¾Æ´Ñ ¿©·¯°÷À» ÇÒ·Á¸é ¾î¶»°Ô Çؾߵdzª¿ä?
2014-05-26 09:23:58
ÂøÇѾÆÀÌ
Âù¼º 98
¹Ý´ë 96
:³×¸Â¾Æ¿ä: Ä£ÀýÇÑ ¼³¸í °¨»çÇÕ´Ï´Ù~~~
2013-11-21 04:30:26
¾ä¾ä
Âù¼º 90
¹Ý´ë 104
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 95359580 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.