function getCallbackName() { callbackIdx += 1; return "getJson" + callbackIdx; } ``` ajax 요청을 위한 기본 파라미터 값을 세팅합니다. var wfsDefaultParameters = { // GeoServer 요청을 위한 파라미터 service : 'WFS', version : '1.0.0', request : 'GetFeature', maxFeatures : 200, outputFormat : 'text/javascript', //format_options : 'callback: getJson', srsName : 'EPSG:4326' }; var parameters = L.Util.extend(getWfsDefaultParameters(info, callbackName)); // WFS 기본 파라미터를 설정하여 반환한다. function getWfsDefaultParameters(info, callbackName) { wfsDefaultParameters.typeName = "mcs:" + info.table; if (info.filter && info.type){ wfsDefaultParameters.CQL_FILTER = info.filter + "='" + info.type + "'"; } wfsDefaultParameters.format_options = "callback: " + callbackName; return wfsDefaultParameters; }