다음지도 api 변경했는데 지도가 안뜨는 이유가 뭘까요?ㅠㅠ 도와주세요
본문
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<form id="fwrite" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" >
<input name='nl_posx' id="nl_posx" value='' type="hidden">
<input name='nl_posy' id="nl_posy" value='' type="hidden">
<input name='nl_level' id="nl_level" value='' type="hidden">
<div class="col-md-9">
<div class="panel panel-default" >
<div class="panel-heading" >
업체정보
</div>
<div class="panel-body" style="padding:2em 3em; ">
<table width='100%'>
<tr><td class="nl_company_title">홈페이지명</td><td class="nl_company_value">
<div class="col-xs-6">
<input class="form-control" name="nl_name" id="nl_name" value="<?php echo $nl[nl_name]?>">
</div>
</td></tr>
<tr><td class="nl_company_title">중개사무소명</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_company_name" id="nl_company_name" value="<?php echo $nl[nl_company_name]?>">
</div></td></tr>
<tr><td class="nl_company_title">중개사명</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_master_name" id="nl_master_name" value="<?php echo $nl[nl_master_name]?>">
</div></td></tr>
<tr><td class="nl_company_title">사무소주소</td><td class="nl_company_value">
<div class="col-xs-12"><input class="form-control" name="nl_addr" id="nl_addr" value="<?php echo $nl[nl_addr]?>">
</div></td></tr>
<tr><td class="nl_company_title">전화번호</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_tel" id="nl_tel" value="<?php echo $nl[nl_tel]?>">
</div>
</td></tr>
<tr><td class="nl_company_title">팩스번호</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_fax" id="nl_fax" value="<?php echo $nl[nl_fax]?>">
</div>
</td></tr>
<tr><td class="nl_company_title">핸드폰번호</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_cellphone" id="nl_cellphone" value="<?php echo $nl[nl_cellphone]?>">
</div></td></tr>
<tr><td class="nl_company_title">사업자번호</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_company_no" id="nl_company_no" value="<?php echo $nl[nl_company_no]?>">
</div></td></tr>
<tr><td class="nl_company_title">중개사무소등록번호</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_land_no" id="nl_land_no" value="<?php echo $nl[nl_land_no]?>">
</div></td></tr>
<tr><td class="nl_company_title">통신판매업번호</td><td class="nl_company_value">
<div class="col-xs-6"><input class="form-control" name="nl_web_no" id="nl_web_no" value="<?php echo $nl[nl_web_no]?>">
</div></td></tr>
</table>
<table width='100%'>
<tr><td class="nl_company_title">다음 지도 API KEY</td><td class="nl_company_value">
<div class="col-xs-12"><input class="form-control" name="nl_daumapi_key" id="nl_daumapi_key" value="<?php echo $nl[nl_daumapi_key]?>">
</div></td></tr>
<tr><td class="nl_company_title">카카오톡 API KEY</td><td class="nl_company_value">
<div class="col-xs-12"><input class="form-control" name="nl_kakao_api_key" id="nl_kakao_api_key" value="<?php echo $nl[nl_kakao_api_key]?>">
</div></td></tr>
<!-- <tr><td class="nl_company_title">네이버 로드인 API KEY</td><td class="nl_company_value"><input class="" name="nl_name" id="nl_name" value="<?php echo $nl[nl_name]?>"></td></tr> -->
<tr><td class="nl_company_title">데이터포탈 API KEY</td><td class="nl_company_value">
<div class="col-xs-12"><input class="form-control" name="nl_dataapi_key" id="nl_dataapi_key" value="<?php echo $nl[nl_dataapi_key]?>">
</div></td></tr>
<tr><td class="nl_company_title">접속위치</td><td>
<div id="map" style="height:400px; width:100%;"></div>
</td></tr>
</table>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default" >
<div class="panel-heading">
빌더 설정
</div>
<div class="panel-body" style="padding:2em 3em; ">
</div>
</div>
</div>
<div style="height:100px; width:130px; margin:0 auto; ">
<button id='savebutton' style="height:52px; line-height:52px; width:130px; text-align: center; background-color: #4d4d4f; color:#ffffff; font-size: 18px; float: left; margin-right: 8px; border:1px; ">저장</button>
</div> <div style="clear:both; height:80px;"></div>
</form>
</div>
</div></div>
<?php
$lapikey =$apikey=G5_DAUMMAP_API;
?>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?apikey=<?php echo $apikey?>"></script>
<script>
function fwrite_submit(f){
//유효성 검사
f.action = "./land_config_form.update.php";
f.method ="POST";
f.submit();
}
<?
if($nl[nl_posx]&&$nl[nl_posy]){
$map_x = $nl[nl_posx];
$map_y = $nl[nl_posy];
$mb_level = $nl[nl_level];
}else{
$map_x = "126.92875781001928";
$map_y = "36.96852215643531";
$mb_level ="7";
}
?>
var pos_x = <?php echo $map_x?>;
var pos_y = <?php echo $map_y?>;
var level = <?php echo $mb_level?>;
var map;
window.onload = function() {
var position = new daum.maps.LatLng(pos_y,pos_x);
var map = new daum.maps.Map(document.getElementById('map'), {
center: position,
level: level,
mapTypeId: daum.maps.MapTypeId.ROADMAP
//SKYVIEW 항공사진, ROADMAP 지도, HYBRID 같이 보기
});
//marker
var marker = new daum.maps.Marker({
position: position
});
marker.setmap(map);
//지도,스카이뷰 컨트롤
var mapTypeControl = new daum.maps.MapTypeControl();
map.addControl(mapTypeControl, daum.maps.ControlPosition.TOPRIGHT);
var bound = map.getBounds();
var sw = bound.getSouthWest();
var ne = bound.getNorthEast();
var b_left = sw.getLng();
var b_top = ne.getLat();
var b_right = ne.getLng();
var b_bottom = sw.getLat();
$("#nl_posx").val(pos_x);
$("#nl_posy").val(pos_y);
$("#nl_level").val(level);
daum.maps.event.addListener(map,"idle",function(){
var center = map.getCenter();
var pos_y = center.getLat();
var pos_x = center.getLng();
var level = map.getLevel();
var bound = map.getBounds();
var sw = bound.getSouthWest();
var ne = bound.getNorthEast();
b_left = sw.getLng();
b_top = ne.getLat();
b_right = ne.getLng();
b_bottom = sw.getLat();
$("#nl_posx").val(pos_x);
$("#nl_posy").val(pos_y);
$("#nl_level").val(level);
});
};
</script>