mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
refix 네이버 지도 컴포넌트 zoom 값은 0일 수 도 있다. (그래서 수정...)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5909 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
818e151209
commit
ba78fe29fb
1 changed files with 3 additions and 2 deletions
|
|
@ -106,6 +106,7 @@
|
|||
$x = $xml_obj->attrs->x;
|
||||
$y = $xml_obj->attrs->y;
|
||||
$zoom = $xml_obj->attrs->zoom;
|
||||
if(!is_numeric($zoom)) $zoom = 3;
|
||||
$marker = urlencode($xml_obj->attrs->marker);
|
||||
$style = $xml_obj->attrs->style;
|
||||
|
||||
|
|
@ -116,7 +117,7 @@
|
|||
if(!$height) $height = 400;
|
||||
|
||||
$body_code = sprintf('<div style="width:%dpx;height:%dpx;margin-bottom:5px;"><iframe src="%s?module=editor&act=procEditorCall&method=displayMap&component=naver_map&width=%d&height=%d&x=%f&y=%f&zoom=%d&marker=%s" frameBorder="0" style="padding:1px; border:1px solid #AAAAAA;width:%dpx;height:%dpx;margin:0px;"></iframe></div>', $width, $height, Context::getRequestUri(), $width, $height, $x, $y, $zoom, $marker, $width, $height);
|
||||
return $body_code;
|
||||
return $zoom;
|
||||
}
|
||||
|
||||
function displayMap() {
|
||||
|
|
@ -139,7 +140,7 @@
|
|||
settype($y,"int");
|
||||
|
||||
$zoom = Context::get('zoom');
|
||||
if($zoom == '') $zoom = 3;
|
||||
if(!is_int($zoom)) $zoom = 3;
|
||||
settype($zoom,"int");
|
||||
|
||||
$marker = Context::get('marker');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue