Class: uGisLayerManager

ugmp.manager.uGisLayerManager

new ugmp.manager.uGisLayerManager(uGisMap, useMinMaxZoom)

레이어 및 TOC를 관리하는 객체.

Name Type Description
uGisMap ugmp.uGisMap

ugmp.uGisMap 객체.

useMinMaxZoom Boolean

MinZoom, MaxZoom 사용 여부. Default is true.

Example
var ugLayerManager = new ugmp.manager.uGisLayerManager( {
	uGisMap : new ugmp.uGisMap({...}),
	useMinMaxZoom : true
} );

Methods

add(uGisLayer, uGisToc)

레이어 및 TOC 객체를 추가한다. (레이어 키로 관리)

Name Type Description
uGisLayer ugmp.layer

ugmp.layer 객체.

uGisToc ugmp.toc

ugmp.toc 객체.

get(layerKey){Object}

레이어 키에 해당하는 레이어, TOC 객체를 가져온다.

Name Type Description
layerKey String

레이어 키.

Returns:
uGisLayerNTocObject

레이어, TOC 객체 리스트를 가져온다.

Name Type Description
all Boolean

모든 객체 리스트를 가져올지 여부를 설정한다.

falseugmp.layer 객체 리스트만 가져온다.

Returns:
uGisLayerNTocObject

uGisMap 객체를 가져온다.

Returns:
uGisMap ugmp.uGisMap 객체.

레이어 키에 해당하는 레이어, TOC 객체를 제거한다.

Name Type Description
layerKey String

레이어 키.