Class: uGisCapture

ugmp.uGisCapture

new ugmp.uGisCapture(opt_options)

uGisMapPlatForm 지도 캡쳐 객체.

배경지도 및 uGisMap에 등록된 레이어를 캡쳐할 수 있다.

useSync(동기화)는 같은 Document일 경우 사용 가능하며 새창으로 띄울 경우 false로 설정해야한다.

Name Type Description
opt_options Object
Name Type Description
useSync Boolean

캡쳐 대상 지도 연동 사용 여부. Default is false.

uGisMap ugmp.uGisMap

ugmp.uGisMap 객체.

uGisBaseMap ugmp.baseMap.uGisBaseMap

ugmp.baseMap.uGisBaseMap 객체.

uGisLayerManager ugmp.manager.uGisLayerManager

ugmp.manager.uGisLayerManager 객체.

appendElement Element

캡쳐 대상 지도 Element를 추가할 Element.

Example
var ugCapture = new ugmp.uGisCapture( {
	useSync : true,
	uGisMap : new ugmp.uGisMap({...}),
	uGisBaseMap : new ugmp.baseMap.uGisBaseMap({...}),
	uGisLayerManager : new ugmp.manager.uGisLayerManager({...}),
	appendElement : document.getElementById('map'),
} );

Methods

baseMapVisibleToggle()

Capture 배경지도의 ON/OFF 상태를 토글한다.

생성된 Capture 객체를 destroy 한다.

getUgisBaseMap(){ugmp.uGisBaseMap}

캡쳐 배경 지도 {ugmp.uGisBaseMap} 객체를 가져온다.

Returns:
captureBaseMapId ugmp.uGisBaseMap 객체.

캡쳐 레이어 매니저 {ugmp.manager.uGisLayerManager} 객체를 가져온다.

Returns:
captureLayerManager ugmp.manager.uGisLayerManager 객체.

캡쳐 지도 {ugmp.uGisMap} 객체를 가져온다.

Returns:
captureUgMap ugmp.uGisMap 객체.

setLayer Ready Success

runCapture(callBack)

지도 캡쳐를 시작한다.

Name Type Description
callBack function

콜백 함수.

setBaseMapVisible(visible)

Capture 배경지도를 끄거나 켤 수 있다.

Name Type Description
visible Boolean

배경지도 ON/OFF.