Class: uGisVectorLayer

ugmp.layer.uGisVectorLayer

new ugmp.layer.uGisVectorLayer(opt_options)

Vector 레이어 객체.

벡터데이터를 표현할 수 있는 레이어 객체.

Name Type Description
opt_options Object
Name Type Description
srsName String

좌표계. Default is EPSG:3857.

features Array.<ol.Feature> | ol.Collection

피처.

declutter Boolean

디클러터링 설정 (이미지, 텍스트). Default is true.

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

스타일.

TODO
  • ★View 좌표계 변경에 따른 피처 좌표계 변환★
Example
var ugVectorLayer = new ugmp.layer.uGisVectorLayer( {
	declutter : true, 
	srsName : 'EPSG:3857',
	style : new ol.style.Style({...}),
	features : [ new ol.Feature( {
	 	geometry : new ol.geom.Polygon({...})
	} ) ]
} );

Extends

Methods

addFeatures(features)

레이어에 Feature를 추가한다.

Name Type Description
features Array.<ol.Feature>

추가할 피처 리스트.

레이어의 Feature를 지운다.

레이어를 destroy한다.

getFeatures(){Array.<ol.Feature>}

레이어의 Feature 리스트를 가져온다.

Returns:
features 피처 리스트.

레이어 키를 가져온다.

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 상태를 토글한다.