안녕하세요~~ 여러모로 계속 도움을 받아 구현을 진행을 거의 마무리 하고 있는데요 궁굼한것 있어 질문을 올립니다

카테고리별 장소 검색하기라는 예제를 참고하여 현재 검색이 아닌 저의 DB에서 데이터를 가져와 지도에 뿌려지는 데에는
성공 했습니다. 하지만 지금 구현이 안되고 있는데 2가지 있는데요
하나는 처음 지도를 로드 했을때 카테고리중 하나는 마커가 미리 떠있었으면 좋겠는데 처음에는 아무런 마커도 표시가 안되어있고 지도만 나오고 있어서 가이드를 받고자 질문을 오렸구요
두번째는 많은 마커 리스트들 중에서 특정 하나의 마커는 커스텀오버레이가 표시가 되는 것을 구현 하려고 합니다
지금까지도 많이 도와주셨는데 다시한번 부탁 드리겠습니다 우선 저의 코드는

<%@page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8"%>

<head>
 	<meta charset="utf-8">
	<title>닫기가 가능한 커스텀 오버레이</title>
	<style>
    map_wrap, .map_wrap * {margin:0; padding:0;font-family:'Malgun Gothic',dotum,'돋움',sans-serif;font-size:12px;}
.map_wrap {position:relative;width:100%;height:350px;}
#category {position:absolute;top:10px;left:10px;border-radius: 5px; border:1px solid #909090;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);background: #fff;overflow: hidden;z-index: 2;}
#category li {float:left;list-style: none;width:50px;px;border-right:1px solid #acacac;padding:6px 0;text-align: center; cursor: pointer;}
#category li.on {background: #eee;}
#category li:hover {background: #ffe6e6;border-left:1px solid #acacac;margin-left: -1px;}
#category li:last-child{margin-right:0;border-right:0;}
#category li span {display: block;margin:0 auto 3px;width:27px;height: 28px;}
#category li .category_bg {background:url(http://t1.daumcdn.net/localimg/localimages/07/mapapidoc/places_category.png) no-repeat;}
#category li .bank {background-position: -10px 0;}
#category li .mart {background-position: -10px -36px;}
#category li .pharmacy {background-position: -10px -72px;}
#category li .oil {background-position: -10px -108px;}
#category li .cafe {background-position: -10px -144px;}
#category li .store {background-position: -10px -180px;}
#category li.on .category_bg {background-position-x:-46px;}
.placeinfo_wrap {position:absolute;bottom:28px;top:-180px;left:-160px;width:300px;}
.placeinfo {position:relative;width:100%;border-radius:6px;border: 1px solid #ccc;border-bottom:2px solid #ddd;padding-bottom: 10px;background: #fff;}
.placeinfo:nth-of-type(n) {border:0; box-shadow:0px 1px 2px #888;}
.placeinfo_wrap .after {content:'';position:relative;margin-left:-12px;left:50%;width:22px;height:12px;background:url('http://t1.daumcdn.net/localimg/localimages/07/mapapidoc/vertex_white.png')}
.placeinfo a, .placeinfo a:hover, .placeinfo a:active{color:#fff;text-decoration: none;}
.placeinfo a, .placeinfo span {display: block;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
.placeinfo span {margin:5px 5px 0 5px;cursor: default;font-size:13px;}
.placeinfo .title {font-weight: bold; font-size:14px;border-radius: 6px 6px 0 0;margin: -1px -1px 0 -1px;padding:10px; color: #fff;background: #d95050;background: #d95050 url(http://t1.daumcdn.net/localimg/localimages/07/mapapidoc/arrow_white.png) no-repeat right 14px center;}
.placeinfo .tel {color:#0f7833;}
.placeinfo .jibun {color:#999;font-size:11px;margin-top:0;}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
	<p style="margin-top:-12px">
    <em class="link">
        <a href="/web/documentation/#CategoryCode" target="_blank">카테고리 코드목록을 보시려면 여기를 클릭하세요!</a>
    </em>
</p>
<div class="map_wrap">
    <div id="map" style="width:100%;height:100%;position:relative;overflow:hidden;"></div>
    <ul id="category">
        <li id="BK9" data-order="0">
            <span class="category_bg bank"></span>
            은행
        </li>
        <li id="MT1" data-order="1">
            <span class="category_bg mart"></span>
            마트
        </li>
        <li id="PM9" data-order="2">
            <span class="category_bg pharmacy"></span>
            약국
        </li>

    </ul>
</div>

<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=35f51e168a9939b17cd2406f4693439c&libraries=services"></script>
<script src="/resources/js/mpv/example/pofol.js?v=<%=System.currentTimeMillis()%>"></script>
</body>
    "use strict";


//마커를 클릭했을 때 해당 장소의 상세정보를 보여줄 커스텀오버레이입니다
var placeOverlay = new kakao.maps.CustomOverlay({zIndex:1}),
    contentNode = document.createElement('div'), // 커스텀 오버레이의 컨텐츠 엘리먼트 입니다
    markers = [], // 마커를 담을 배열입니다
    currCategory = ''; // 현재 선택된 카테고리를 가지고 있을 변수입니다

var mapContainer = document.getElementById('map'), // 지도를 표시할 div
    mapOption = {
        center: new kakao.maps.LatLng(37.499590490909185,127.0263723554437), // 지도의 중심좌표
        level: 5 // 지도의 확대 레벨
    };


// 지도를 생성합니다
var map = new kakao.maps.Map(mapContainer, mapOption);

// 장소 검색 객체를 생성합니다
var ps = new kakao.maps.services.Places(map);

// 지도에 idle 이벤트를 등록합니다
kakao.maps.event.addListener(map, 'idle', searchPlaces);

// 커스텀 오버레이의 컨텐츠 노드에 css class를 추가합니다
contentNode.className = 'placeinfo_wrap';

// 커스텀 오버레이의 컨텐츠 노드에 mousedown, touchstart 이벤트가 발생했을때
// 지도 객체에 이벤트가 전달되지 않도록 이벤트 핸들러로 kakao.maps.event.preventMap 메소드를 등록합니다
addEventHandle(contentNode, 'mousedown', kakao.maps.event.preventMap);
addEventHandle(contentNode, 'touchstart', kakao.maps.event.preventMap);

// 커스텀 오버레이 컨텐츠를 설정합니다
placeOverlay.setContent(contentNode);

// 각 카테고리에 클릭 이벤트를 등록합니다
addCategoryClickEvent();

// 엘리먼트에 이벤트 핸들러를 등록하는 함수입니다
function addEventHandle(target, type, callback) {
    if (target.addEventListener) {
        target.addEventListener(type, callback);
    } else {
        target.attachEvent('on' + type, callback);
    }
}

// 카테고리 검색을 요청하는 함수입니다
function searchPlaces() {
	console.log("currCategory11 : "+currCategory)
    if (!currCategory) {
        return;
    }

    // 커스텀 오버레이를 숨깁니다
    //placeOverlay.setMap(null);



    // 지도에 표시되고 있는 마커를 제거합니다
    removeMarker();
    console.log("currCategory : "+currCategory)

 var params = {
				curr : currCategory

				};



	commAjax("/puzzleMap",params,"GET",callpuzzleMap);


}
var callpuzzleMap = function(obj) {

	console.log("!!! : "+obj.list.length)
	displayPlaces(obj.list);

}

// 지도에 마커를 표출하는 함수입니다 places.list[0].addrLat
function displayPlaces(places) {


    // 몇번째 카테고리가 선택되어 있는지 얻어옵니다
    // 이 순서는 스프라이트 이미지에서의 위치를 계산하는데 사용됩니다
    var order = document.getElementById(currCategory).getAttribute('data-order');


    for ( var i=0; i<places.length; i++ ) {

            // 마커를 생성하고 지도에 표시합니다
            var marker = addMarker(new kakao.maps.LatLng(places[i].addrLat, places[i].addrLng), order);

            // 마커와 검색결과 항목을 클릭 했을 때
            // 장소정보를 표출하도록 클릭 이벤트를 등록합니다
            (function(marker, place) {

                kakao.maps.event.addListener(marker, 'click', function() {
                	console.log("click!!")
                    displayPlaceInfo(place);
                });
            })(marker, places[i]);
    }
}

// 마커를 생성하고 지도 위에 마커를 표시하는 함수입니다
function addMarker(position, order) {

	console.log("order : "+order);

	if(order === "1"){
		var imageSrc = '/resources/images/map-master-3.png'; // 마커이미지의 주소입니다


	}else if(order === "2"){
		var imageSrc = '/resources/images/map-puzzle-3.png'; // 마커이미지의 주소입니다

	}
	var imageSize = new kakao.maps.Size(36, 36), // 마커이미지의 크기입니다
    	imgOptions = {offset: new kakao.maps.Point(27, 69)}, // 마커이미지의 옵션입니다. 마커의 좌표와 일치시킬 이미지 안에서의 좌표를 설정합니다.
    	markerImage = new kakao.maps.MarkerImage(imageSrc, imageSize, imgOptions),
    	marker = new kakao.maps.Marker({
    	position: position, // 마커의 위치
    	image: markerImage
});

    marker.setMap(map); // 지도 위에 마커를 표출합니다
    markers.push(marker);  // 배열에 생성된 마커를 추가합니다

    return marker;
}

// 지도 위에 표시되고 있는 마커를 모두 제거합니다
function removeMarker() {
    for ( var i = 0; i < markers.length; i++ ) {
        markers[i].setMap(null);
    }
    markers = [];
}

// 클릭한 마커에 대한 장소 상세정보를 커스텀 오버레이로 표시하는 함수입니다
function displayPlaceInfo (place) {

	if(place.puzzleId === null){
		var content = '<div class="placeinfo">' + '   <a class="title" href="'
				+ place.place_url1 + '" target="_blank" title="'
				+ place.puzzleId + '">' + place.puzzleId + '</a>';

		if (place.road_address_name) {
			content += '    <span title="' + place.puzzleNm + '">'
					+ place.puzzleNm + '</span>'
					+ '  <span class="jibun" title="' + place.puzzleAddr
					+ '">(지번 : ' + place.puzzleAddr + ')</span>';
		} else {
			content += '    <span title="' + place.puzzleAddr + '">'
					+ place.puzzleAddr + '</span>';
		}

		content += '    <span class="tel">' + place.puzzleAddr + '</span>'
				+ '</div>' + '<div class="after"></div>';
	}else{
		var content = '<div class="placeinfo">' + '   <a class="title" href="'
				+ place.place_url1 + '" target="_blank" title="'
				+ place.puzzleId + '">' + place.puzzleId + '</a>';

		if (place.road_address_name) {
			content += '    <span title="' + place.puzzleNm + '">'
					+ place.puzzleNm + '</span>'
					+ '  <span class="jibun" title="' + place.puzzleAddr
					+ '">(지번 : ' + place.puzzleAddr + ')</span>';
		} else {
			content += '    <span title="' + place.puzzleAddr + '">'
					+ place.puzzleAddr + '</span>';
		}

		content += '    <span class="tel">' + place.puzzleAddr + '</span>'
				+ '</div>' + '<div class="after"></div>';
	}


    contentNode.innerHTML = content;
    placeOverlay.setPosition(new kakao.maps.LatLng(place.addrLat, place.addrLng));
    placeOverlay.setMap(map);
}


// 각 카테고리에 클릭 이벤트를 등록합니다
function addCategoryClickEvent() {
    var category = document.getElementById('category'),
        children = category.children;

    for (var i=0; i<children.length; i++) {
        children[i].onclick = onClickCategory;
    }
}

// 카테고리를 클릭했을 때 호출되는 함수입니다
function onClickCategory() {
    var id = this.id,
        className = this.className;

    console.log("id : "+id)
    console.log("className : "+className)

    placeOverlay.setMap(null);

    if (className === 'on') {
        currCategory = '';
        changeCategoryClass();
        removeMarker();
    } else {
        currCategory = id;
        changeCategoryClass(this);
        searchPlaces();
    }
}

// 클릭된 카테고리에만 클릭된 스타일을 적용하는 함수입니다
function changeCategoryClass(el) {
    var category = document.getElementById('category'),
        children = category.children,
        i;

    for ( i=0; i<children.length; i++ ) {
        children[i].className = '';
    }

    if (el) {
        el.className = 'on';
    }
}

이상 코드구요
여기까지 읽어 주셔서 감사합니다~!!

대략적인 방향은 잡으신 것 같은데,
질문하신 두 가지 내용들은 문서와 예제를 보고 충분히 구현 가능하실 겁니다.

비지니스 로직은 설게 및 구현을 직접 하시는게 맞지요.
API가 생각대로 동작하지 않는다거나 에러가 나는 부분에 대해서 솔루션을 드릴 수 있습니다.
하지만 질문 하신 내용은 뭐랄까… 답변드리기에는 너무 부담스럽습니다.
로직 설계와 구현에 대한 질문에 대해서는 답변 드릴 수 없는 점 양해 부탁드리겠습니다.

질문을 구체화 해 주시면 답변드릴게요.

네 답장 주셔서 감사합니다 문서랑 예제를 다시한번 보고 구현 해보도록 하겠습니다.