// 기본 지도 생성
var mapObj = new NMap(document.getElementById('mapContainer'),566,250);
mapObj.setCenterAndZoom(new NPoint(446047,362270),1);
//마커 관련
var infowin = new NInfoWindow();
var boxpoint = new NPoint(446047,362270)
var flag = new NMark(boxpoint,new NIcon('http://imgs.career.co.kr/icons/arrow.png', new NSize(35, 35), new NSize(35, 35)));
mapObj.addOverlay(flag);
str_info = "";
str_info += "";
str_info += " ";
str_info += " 연승어패럴 | ";
str_info += " ";
str_info += " ";
str_info += " 대구 달서구 이곡동 | ";
str_info += " ";
str_info += " ";
mapObj.addOverlay(infowin);
infowin.setOpacity(1);
infowin.set(boxpoint, str_info);
infowin.showWindow();
// 확대, 축소를 위한 컨트롤을 생성합니다.
var zoom = new NZoomControl();
zoom.setAlign("right");
zoom.setValign("top");
mapObj.addControl(zoom);
|