»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

À¥ ÇÁ·Î±×·¡¹Ö(ÀÚ¹Ù½ºÅ©¸³Æ®) Áú¹® ÀÖ½À´Ï´Ù..9

  • ¸®±Ôµ¿
  • µî·ÏÀÏ 2015-11-12 09:23
  • Á¶È¸¼ö 679
³×À̹ö Áöµµ api¸¦ »ç¿ëÇؼ­ À¥ °³¹ßÁß¿¡ ÀÖ½À´Ï´Ù.

html aű׸¦ Ŭ¸¯Çϸé ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö°¡ µ¿ÀÛÇÏ°í

ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö¿¡¼­´Â

³×À̹ö Áöµµ api¿¡¼­ »ý¼ºÇÑ ¸¶Ä¿¸¦ Ŭ¸¯ÇÏ¿© InfoWindow¸¦ ¶ç¿ï ¼ö ÀÖ°Ô ÇÏ·Á°í ÇÕ´Ï´Ù.


±âÁ¸¿¡ ³×À̹ö Áöµµ api ÀÚü¿¡¼­ ¸¶Ä¿¸¦ Ŭ¸¯ÇÏ°í InfoWindow¸¦ ¶ç¿ì´Â°Ç °¡´ÉÇÕ´Ï´Ù¸¸

ÇÔ¼ö¸¦ ÅëÇؼ­ ÇÏ´Â°Ç ¾î·Á¿òÀÌ Àֳ׿ä..

// °´Ã¼ »ý¼º
var oInfoWnd = [];
oInfoWnd[52] = new nhn.api.map.InfoWindow();
oMarker[52].attach('click', function(oCustomEvent) {
oInfoWnd[52].setVisible(true, oMarker[52]);
}

// aű×
<a style="color:#333; text-decoration:none;" onclick=showOnMap('52')>

// ÇÔ¼ö
function showOnMap(num) {
if(!oInfoWnd[num].getVisible()) {
<? for($j=0; $j<mysql_num_rows($room_query); $j++) { ?>
oInfoWnd[<?=$r_num[$j]?>].setVisible(false, oMarker<?=$r_num[$j]?>);
<? } ?>
oInfoWnd[num].setVisible(true, oMarker<?=$r_num[$i]?>);
}
else
oInfoWnd[num].setVisible(false, oMarker<?=$r_num[$i]?>);
}


aű׿¡¼­ Ŭ¸¯ÇßÀ» ¶§ ÇØ´çÇÏ´Â ºÎºÐÀÇ numÀ» ³Ñ°ÜÁà¾ß Çϴµ¥

Àú »¡°£»ö numÀÌ Á¦´ë·Î µ¿ÀÛÀÌ ¾ÈÇϳ׿ä..

µüÈ÷ º°´Ù¸¥ ¹æ¹ýÀÌ »ý°¢³ªÁö ¾Ê°í À̺κп¡¼­ °è¼Ó ¸ØÃçÀ־ °í¹ÎÀÔ´Ï´Ù..

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ÃÖµµ·É

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¸®±Ôµ¿

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ÃÖµµ·É

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¸®±Ôµ¿

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ÀüÀï¿Õ

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¿ï»êºý±¸

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¸®±Ôµ¿

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 »â¸±·ò

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 Äôµû¸®Äô´Ú
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â