네이버 지도 컴포넌트 주소 검색 결과가 1개 일때는, 결과 주소로 바로 이동하도록 수정. 결과값이 많을때, 스크롤만 생기도록 수정. 리사이즈 스크립트 수치 조정...(이상타,,,)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5792 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-03-07 07:41:24 +00:00
parent cc1b877c6f
commit ca38b88308
4 changed files with 8 additions and 7 deletions

View file

@ -521,9 +521,9 @@ function setFixedPopupSize() {
jQuery('table').each(function() { var ww = jQuery(this).width(); if(ww > w) w = ww; });
jQuery('form').each(function() { var ww = jQuery(this).width(); if(ww > w) w = ww; });
jQuery("#popup_content").width(w-4);
jQuery("#popHeader").width(w-4);
jQuery("#popFooter").width(w-4);
jQuery("#popup_content").width(w);
jQuery("#popHeader").width(w);
jQuery("#popFooter").width(w);
window.resizeTo(w, h);

View file

@ -5,7 +5,7 @@
#address { width:100px; }
.about_address { clear:both; color:#DDDDDD; }
.address_list_box { color:#AAAAAA; margin-top:1em; clear:both; padding:5px; }
.address_list_box { color:#AAAAAA; margin-top:1em; clear:both; padding:5px; height:110px; overflow-y:scroll }
.address_list_box a { color:#AAAAAA; }
.address_lists { list-style:none; }

View file

@ -13,8 +13,6 @@
<td>
<div class="search">
<form action="./" method="get" onSubmit="search_address(); return false;" id="fo">
<input type="hidden" id="map_x" name="x" value="" />
<input type="hidden" id="map_y" name="x" value="" />
<input type="hidden" id="marker" name="marker_1" value="" />
<table border="0" class="rowTable">

View file

@ -35,7 +35,7 @@ function getNaverMap() {
function insertNaverMap(obj) {
if(typeof(opener)=="undefined") return;
var x = display_map.mapObj.getCenter().x;
var y = display_map.mapObj.getCenter().y;
var marker = xGetElementById("marker").value;
@ -91,6 +91,9 @@ function complete_search_address(ret_obj, response_tags, selected_address) {
naver_address_list[naver_address_list.length] = item;
html += "<li class=\"address_lists\"><a href='#' onclick=\"moveMap('"+item[0]+"','"+item[1]+"');return false;\">"+item[2]+"</a></li>";
}
if(address_list.length == 1) {
moveMap(item[0],item[1]);
}
var list_zone = xGetElementById("address_list");
xInnerHtml(list_zone, html);