From a2dc654a830604599a109500e1927c2ca67c25e2 Mon Sep 17 00:00:00 2001 From: misol Date: Sun, 8 Mar 2009 03:46:16 +0000 Subject: [PATCH] =?UTF-8?q?=EB=84=A4=EC=9D=B4=EB=B2=84=20=EC=A7=80?= =?UTF-8?q?=EB=8F=84=20=EC=88=98=EC=A0=95=20-=20=EA=B2=80=EC=83=89=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20=ED=81=B4=EB=A6=AD=EC=8B=9C=20=EC=A7=80?= =?UTF-8?q?=EB=8F=84=20=ED=99=94=EB=A9=B4=EC=97=90=20=EC=9C=84=EC=B9=98=20?= =?UTF-8?q?=EC=84=A4=EB=AA=85=EC=9D=B4=202=EC=B4=88=EA=B0=84=20=EB=9C=A8?= =?UTF-8?q?=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5795 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../components/naver_map/naver_map.class.php | 7 ++++++- .../editor/components/naver_map/tpl/popup.js | 20 ++++++++++++++----- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/modules/editor/components/naver_map/naver_map.class.php b/modules/editor/components/naver_map/naver_map.class.php index dd24e14c8..572f439bf 100644 --- a/modules/editor/components/naver_map/naver_map.class.php +++ b/modules/editor/components/naver_map/naver_map.class.php @@ -151,14 +151,18 @@ ''. ''. ''. - ''. ''. ''. '
'. ''. ''. ''; diff --git a/modules/editor/components/naver_map/tpl/popup.js b/modules/editor/components/naver_map/tpl/popup.js index 091e2ed24..667d4c104 100644 --- a/modules/editor/components/naver_map/tpl/popup.js +++ b/modules/editor/components/naver_map/tpl/popup.js @@ -76,7 +76,13 @@ function moveMap(x,y,scale) { display_map.moveMap(x,y,scale); } +function selectPoint(i) { + moveMap(item[i][0],item[i][1],3); + display_map.showInfo(item[i][0],item[i][1],item[i][2]); +} + var naver_address_list = new Array(); +var item = new Array(); function complete_search_address(ret_obj, response_tags, selected_address) { var address_list = ret_obj['address_list']; if(!address_list) return; @@ -85,14 +91,18 @@ function complete_search_address(ret_obj, response_tags, selected_address) { var html = ""; var address_list = address_list.split("\n"); - for(var i=0;i"+item[2]+""; + naver_address_list[naver_address_list.length] = item; + html += "
  • "+item[i][2]+"
  • "; + } } if(address_list.length == 1) { - moveMap(item[0],item[1]); + selectPoint(0); } var list_zone = xGetElementById("address_list");