GeOnDT GeOnDT for JS

Class: U3dImageWMTSLayer

U3dImageWMTSLayer

~extends U3dImageLayer
OGC WMTS를 이용한 이미지 레이어로, 사전에 생성한 타일셋 별로 이미지를 요청해 지도에 표출합니다.

new U3dImageWMTSLayer(opt)

U3dImageWMTSLayer 생성자입니다.

Name Type Default Description
opt U3dImageWMTSLayerCO {} optional

생성자 옵션

Methods

addLayer(name, callback)boolean

WMTS 자식 레이어를 추가하는 함수입니다.

Name Type Description
name string

추가할 레이어 이름

callback function

추가 후 호출되는 사용자 콜백 함수

Returns:
Type Description
boolean 작업 결과. 성공이면 true, 실패면 false 를 반환합니다.

createTexture(tile)Promise.<U3dQuadTile>|undefined

입력 받은 타일의 이미지 텍스처를 생성합니다.
OpenLayers 의 가상 맵/뷰를 만들어 WMTS 요청 결과를 캔버스로 렌더링한 뒤 텍스처로 변환합니다. 타일 영역이 데이터 소스 범위(_geoextent)와 교차하지 않을 경우 작업을 건너뜁니다.

Name Type Description
tile U3dQuadTile

텍스처를 생성할 타일

Returns:
Type Description
Promise.<U3dQuadTile> | undefined 작업 완료 시 resolve 되는 deferred.

dispose()any

레이어를 해제(dispose)합니다.

Returns:
Type Description
any

disposeTile(tile, opt)void

입력 받은 타일을 해제(dispose)합니다.

Name Type Description
tile U3dQuadTile

해제할 타일

opt object optional

타일 해제 옵션

Returns:
Type Description
void

removeLayer(name)void

등록된 WMTS 자식 레이어 중 입력 이름과 일치하는 레이어를 제거하는 함수입니다.

Name Type Description
name string

제거할 레이어 이름

Returns:
Type Description
void

removeLayerAll()void

등록된 모든 WMTS 자식 레이어를 제거하는 함수입니다.

Returns:
Type Description
void

setCancelByTile(tile, promise, olmap, olview)

타일 작업의 취소(cancel) 콜백을 등록합니다.
작업 도중 타일이 해제되거나 외부에서 취소될 경우, OpenLayers 임시 맵/뷰를 정리하고 promise 를 resolve 합니다.

Name Type Description
tile U3dQuadTile

작업 대상 타일

promise DeferredObject.<U3dQuadTile>

작업 진행 상황을 전달할 promise

olmap U3dImageWMTSLayerOlMap optional

정리 대상 OpenLayers Map

olview U3dImageWMTSLayerOlView optional

정리 대상 OpenLayers View

setParameter(param)void

WMTS 레이어 클래스 생성 파라미터를 반환하는 함수입니다.

Name Type Description
param object

추가/변경할 파라미터 객체

Returns:
Type Description
void

update(drawArg)void

레이어를 새로 그리는(update) 함수입니다.

Name Type Description
drawArg UDrawArg optional

DrawArg

Returns:
Type Description
void

Type Definitions

U3dImageWMTSLayerCOobject

~extends U3dImageLayer~U3dImageLayerCO
생성자 옵션

Properties:
Name Type Argument Default Description
layername string <optional>

WMTS 레이어 이름

transparent boolean <optional>
true

레이어 투명 여부 false일 경우 opacity가 적용되지 않습니다.

startlevel number <optional>
0

시작 레벨

reverseX boolean <optional>
false

X축 반전 여부

reverseY boolean <optional>
false

Y축 반전 여부

layers Array.<{name: string, callback: function()}> <optional>
[]

WMTS 레이어 자식 레이어 리스트

oldebug boolean <optional>
true

ol Debug 사용 여부

parameter KeyValue <optional>
{}

WMTS 레이어 생성 파라미터

needXml boolean <optional>
false

메타데이터 xml 사용 여부

xmlUrl string <optional>

메타데이터 xml URL

srs string <optional>

WMTS 레이어 데이터 좌표계

crs string <optional>
"EPSG:3857"

WMTS 레이어 요청 좌표계

geoextent Array.<number> <optional>

위경도 좌표 확장값

boundingbox object <optional>

WMTS 레이어 boundingbox

minlevel number <optional>
0

레이어 가시화 최소 레벨

maxlevel number <optional>
19

레이어 가시화 최대 레벨

opacity number <optional>
1

이미지 리소스 투명도

renderOrder number <optional>

랜더링 우선 순위

U3dImageWMTSLayerOlMapobject

Openlayers Map 의 구조 인터페이스 (래퍼)

Properties:
Name Type Argument Description
ukey_ unknown <optional>
setSize function
once function
getLayers function
removeLayer function
setTarget function
setView function
dispose function

U3dImageWMTSLayerOlViewobject

Openlayers View 의 구조 인터페이스 (래퍼)

Properties:
Name Type Description
dispose function