diff --git a/modules/editor/components/naver_map/lang/ko.lang.php b/modules/editor/components/naver_map/lang/ko.lang.php index ff44ec796..e105a03af 100644 --- a/modules/editor/components/naver_map/lang/ko.lang.php +++ b/modules/editor/components/naver_map/lang/ko.lang.php @@ -5,11 +5,13 @@ * @brief 위지윅에디터(editor) 모듈 > 멀티미디어 링크 (naver_map) 컴포넌트의 언어팩 **/ - $lang->navermap = "네이버 지도"; - $lang->search_address = "주소 검색"; - $lang->address_list = "주소 선택"; - $lang->navermap_width = "가로크기"; - $lang->navermap_height = "세로크기"; + $lang->map_title = "네이버 지도 검색"; + $lang->map_width = "가로크기"; + $lang->map_height = "세로크기"; + + // 문구 + $lang->about_address = "예) 분당 정자동, 역삼"; + $lang->about_address_use = "검색창에서 원하는 주소를 검색하신후 출력된 결과물을 선택하시고 [추가] 버튼을 눌러주시면 글에 지도가 추가가 됩니다"; // 에러 메세지들 $lang->msg_not_exists_addr = "검색하려는 대상이 없습니다"; diff --git a/modules/editor/components/naver_map/naver_map.class.php b/modules/editor/components/naver_map/naver_map.class.php index 5cffb7ee8..c7ac5355e 100644 --- a/modules/editor/components/naver_map/naver_map.class.php +++ b/modules/editor/components/naver_map/naver_map.class.php @@ -107,31 +107,45 @@ function displayMap() { $id = "navermap".rand(11111111,99999999); - $width = Context::get('width'); - $height = Context::get('height'); - $x = Context::get('x'); - $y = Context::get('y'); - $html .= - sprintf( + $width = Context::get('width'); + if(!$width) $width = 640; + + $height = Context::get('height'); + if(!$height) $height = 480; + + $x = Context::get('x'); + if(!$x) $x = 321198; + + $y = Context::get('y'); + if(!$y) $y = 529730; + + $html = ''. ''. '
'. + '