Class: uGisWebWMSToc

ugmp.toc.uGisWebWMSToc

new ugmp.toc.uGisWebWMSToc(opt_options)

Web WMS TOC 객체.

WMS 서비스의 TOC를 표현하는 객체. 원하는 레이어만 표현할 수 있다.

Name Type Description
opt_options Object
Name Type Description
tocKey String

TOC Key.

tocTitle String

TOC 타이틀.

uGisMap ugmp.uGisMap

ugmp.uGisMap 객체.

uGisLayer ugmp.layer.uGisWMSLayer

ugmp.layer.uGisWMSLayer 객체.

tocListDivId String

TOC가 생성될 DIV ID.

symbolSize Array.<Number>

범례 심볼 간격. Default is [20, 20].

visibleState Object

{ layerName : Boolean } 형태로 초기 체크 상태 설정.

capabilities ugmp.service.uGisGetCapabilitiesWMS

ugmp.service.uGisGetCapabilitiesWMS WMS capabilities.

selectLayers Array.<String>

TOC에 추가할 레이어 리스트.

Example
var uGWebWmsToc = new ugmp.toc.uGisWebWMSToc( {
	uGisMap : new ugmp.uGisMap({...}),
	uGisLayer : new ugmp.layer.uGisWMSLayer({...}),
	capabilities : new ugmp.service.uGisGetCapabilitiesWMS({...}).data,
	tocKey : 'wms_key',
	tocTitle : 'WMS TOC Title',
	tocListDivId : 'toc',
	symbolSize : [20, 20],
	visibleState : { 'LAYER_NAME1' : false, 'LAYER_NAME2' : false },
	loadData : { 'LayerName' : 'ROOT', 'checked' : false, 'open' : true }
	selectLayers : [ 'LAYER_NAME1', 'LAYER_NAME2' ]
} );

Extends

Methods

getSaveData(){Object}

저장할 TOC 목록 상태 가져오기.

Returns:
Layer Object.

getShowLayerNames(){Array.<String>}

현재 보여지고 있는 레이어 목록 가져오기.

uniq가 true면 중복된 레이어를 제거한다.

Returns:
showLayerList 현재 보여지고 있는 레이어 목록.

TOC DIV ID를 가져온다.

Returns:
tocDivId TOC DIV ID.

TOC를 다시 로드한다.

※설정된 ugmp.service.uGisGetCapabilitiesWMS를 기준으로 다시 로드한다.

TOC를 삭제한다.

inherited tocCheckAllNodes(state)

TOC 전체 체크.

Name Type Description
state Boolean

체크 상태.

TOC 전체 펼치기.

Name Type Description
state Boolean

펼치기 상태.