Class: uGisWFSLayer

ugmp.layer.uGisWFSLayer

new ugmp.layer.uGisWFSLayer(opt_options)

WFS 레이어 객체.

WFS 서비스를 표현할 수 있는 레이어 객체.

Name Type Description
opt_options Object
Name Type Description
useProxy Boolean

프록시 사용 여부. Default is false.

serviceURL String

WFS 서비스 URL.

layerName String

레이어명.

srsName String

좌표계. Default is EPSG:3857.

filter ol.format.filter.Filter

필터. Default is undefined.

maxFeatures Number

피처 최대 요청 갯수. Default is 1000.

style ol.style.Style | Array.<ol.style.Style> | ol.StyleFunction

스타일.

TODO
  • ★View 좌표계 변경에 따른 피처 좌표계 변환★
Example
var ugWfsLayer = new ugmp.layer.uGisWFSLayer( {
	useProxy : true,
	serviceURL : 'http://mapstudio.uitgis.com/ms/wfs?KEY=key',
	layerName : 'world_country',
	srsName : 'EPSG:3857',
	maxFeatures : 300,
	style : new ol.style.Style({...}),
	filter : new ol.format.filter.like( 'NAME', 'South*' )
} );

Extends

Methods

레이어를 destroy한다.

getFeatures(filter)

OGC WFS getFeatures를 요청한다.

Name Type Description
filter ol.format.filter.Filter

필터

Returns:
uFeatures ugmp.service.uGisGetFeature ugmp.service.uGisGetFeature.

레이어 키를 가져온다.

Returns:
layerKey 레이어 키.

레이어 타입을 가져온다.

Returns:
layerType 레이어 타입.

레이어의 MaxZoom 값을 가져온다.

Returns:
maxZoom MaxZoom 값.

레이어의 MinZoom 값을 가져온다.

Returns:
minZoom MinZoom 값.

OpenLayers의 ol.layer 객체를 가져온다.

Returns:
olLayer OpenLayers의 ol.layer 객체

서비스 URL을 가져온다.

Returns:
serviceURL 서비스 URL.

inherited getUseGetFeature(){Boolean}

GetFeature 사용 여부를 가져온다.

Returns:
useGetFeature GetFeature 사용 여부.

레이어 visible 상태를 가져온다.

  1. 오픈레이어스 레이어 상태

  2. 레이어 visible상태

  3. TOC visible 상태

  4. 스케일 visible 상태

모든 항목의 visible 상태가 true일 경우에만 true.

Returns:
visible visible 상태.

inherited setLayerVisible(visible){Object}

레이어 visible 상태를 설정한다.

Name Type Description
visible Boolean

레이어 visible 상태.

Returns:
각 항목별 visible 상태.

레이어의 MaxZoom을 설정한다.

Name Type Description
maxZoom Integer

MaxZoom 값.

레이어의 MinZoom을 설정한다.

Name Type Description
minZoom Integer

MinZoom 값.

inherited setScaleVisible(visible){Object}

스케일 visible 상태를 설정한다.

Name Type Description
visible Boolean

스케일 visible 상태.

Returns:
각 항목별 visible 상태.

inherited setTocVisible(visible){Object}

TOC visible 상태를 설정한다.

Name Type Description
visible Boolean

TOC visible 상태.

Returns:
각 항목별 visible 상태.

GetFeature 사용 여부를 설정한다.

Name Type Description
state Boolean

GetFeature 사용 여부.

레이어 visible 상태를 토글한다.