피처 그리기 객체.
마우스로 다양한 도형을 그리는 컨트롤 객체.
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt_options |
Object |
|
Example
var ugDrawFeature = new ugmp.control.uGisDrawFeature( {
uGisMap : new ugmp.uGisMap({...}),
useSnap : true,
freehand : false,
useDragPan : true,
drawType : 'Polygon',
cursorCssName : 'cursor-polygon',
useDrawEndDisplay : true,
activeChangeListener : function(state_) {
console.log( state_ );
},
featureStyle : new ol.style.Style({...}),
drawingStyle : new ol.style.Style({...})
} );
Subclasses
Extends
Methods
-
그려진 도형을 지운다.
-
컨트롤을 초기화한다.
Name Type Description clearFeatureBoolean 그려진 도형 제거 여부.
-
Interaction 활성화 상태를 가져온다.
Returns:
Interaction 활성화 상태.
-
컨트롤 키를 가져온다.
Returns:
getControlKey 컨트롤 키.
-
피쳐를 가져온다.
Returns:
features Features.
-
Interaction을 가져온다.
Returns:
interaction Draw Interaction.
-
레이어를 가져온다.
Returns:
vectorLayer Vector Layer.
-
피처를 제거한다.
Name Type Description featureol.Feature 제거할 피처.
-
Interaction 활성화를 설정한다.
Name Type Description stateBoolean 활성화 여부.
-
컨트롤의 상태 변경 CallBack.
Name Type Description activeChangeListenerfunction 컨트롤의 상태 변경 CallBack.
OpenLayers - uGisMapPlatForm API