uGisMapPlatForm 지도 객체.
다양한 타입의 레이어(ugmp.layer)를 추가할 수 있으며, 지도의 기본 객체이다.
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt_options |
Object |
|
Example
var ugMap = new ugmp.uGisMap( {
target : 'map',
crs : 'EPSG:3857',
center : [ 0, 0 ],
useMaxExtent : true,
useAltKeyOnly : false
} );
// ol.Map 객체에 직접 접근
ugMap.getMap().addLayer( new ol.layer.Tile( {
source : new ol.source.OSM()
} ) );
// uGisMap에 WMS 레이어 추가
ugMap.addWMSLayer( {
uWMSLayer : new ugmp.layer.uGisWMSLayer( {...} )
...
} );
Methods
-
Cluster 레이어를 추가한다.
Name Type Description opt_optionsObject Name Type Description uClusterLayerugmp.layer.uGisClusterLayer Returns:
promise jQuery.Deferred.promise.
-
Vector3D 레이어를 추가한다.
Name Type Description opt_optionsObject Name Type Description uVector3DLayerugmp.layer.uGisVector3DLayer useExtentBoolean 레이어 추가 후 extent 설정 사용 여부.
true면 해당 레이어의 영역으로 지도 영역을 맞춘다. Default isfalse.Returns:
promise jQuery.Deferred.promise.
-
Vector 레이어를 추가한다.
Name Type Description opt_optionsObject Name Type Description uVectorLayerugmp.layer.uGisVectorLayer useExtentBoolean 레이어 추가 후 extent 설정 사용 여부.
true면 해당 레이어의 영역으로 지도 영역을 맞춘다. Default isfalse.Returns:
promise jQuery.Deferred.promise.
-
WCS 레이어 추가
Name Type Description opt_optionsObject Name Type Description uWCSLayerugmp.layer.uGisWCSLayer extentArray 레이어 추가 후 설정될 extent.
useExtentBoolean 레이어 추가 후 extent 설정 사용 여부. Default is
false.true면 해당 레이어의 영역으로 지도 영역을 맞춘다. Default isfalse.※
extent가 정상적이지 않을 경우ugmp.service.uGisGetCapabilitiesWCS의 extent로 설정.Returns:
promise jQuery.Deferred.promise.
-
WFS 레이어를 추가한다.
Name Type Description opt_optionsObject Name Type Description uWFSLayerugmp.layer.uGisWFSLayer useExtentBoolean 레이어 추가 후 extent 설정 사용 여부.
true면 해당 레이어의 영역으로 지도 영역을 맞춘다. Default isfalse.Returns:
promise jQuery.Deferred.promise.
-
WMS 레이어를 추가한다.
Name Type Description opt_optionsObject Name Type Description uWMSLayerugmp.layer.uGisWMSLayer extentArray.<Number> 레이어 추가 후 설정될 extent.
resolutionFloat 레이어 추가 후 설정될 resolution.
useExtentBoolean 레이어 추가 후 extent 설정 사용 여부.
true면 해당 레이어의 영역으로 지도 영역을 맞춘다. Default isfalse.※
extent가 정상적이지 않을 경우ugmp.service.uGisGetCapabilitiesWMS의 extent로 설정.Returns:
promise jQuery.Deferred.promise.
-
WMTS 레이어를 추가한다.
Name Type Description opt_optionsObject Name Type Description uWMTSLayerugmp.layer.uGisWMTSLayer extentArray.<Number> 레이어 추가 후 설정될 extent.
useExtentBoolean 레이어 추가 후 extent 설정 사용 여부.
true면 해당 레이어의 영역으로 지도 영역을 맞춘다. Default isfalse.※
extent가 정상적이지 않을 경우ugmp.service.uGisGetCapabilitiesWMTS의 extent로 설정.Returns:
promise jQuery.Deferred.promise.
-
현재 지도에서 해당 Extent의 스케일을 계산한다.
Name Type Description opt_optionsObject Name Type Description extentArray.<Number> 스케일을 계산할 Extent. Default is 현재 지도 영역.
originCRSString 레이어 원본 좌표계. Default is 현재 지도 좌표계.
Returns:
scale 스케일.
-
현재 지도 좌표계를 가져온다.
Returns:
mapCRS 현재 지도 좌표계.
-
현재 지도의 View ID를 가져온다. View ID는 고유값이므로 해당 지도의 Key로 사용한다.
Returns:
dataViewId View ID.
-
현재
ugmp.uGisMap에 추가된ugmp.layer목록을 가져온다.Name Type Description layerTypeString 레이어 타입. (WMS, WFS, WMTS, Vector...)
Returns:
layers 레이어 목록.
-
현재
ugmp.uGisMap에 설정된 ol.Map 객체를 가져온다.Returns:
olMap ol.Map 객체.
-
현재 지도에서 해당 줌 레벨의 스케일을 계산한다.
Name Type Description zoomInteger 줌 레벨.
Returns:
scale 스케일.
-
지도 새로고침.
-
현재 지도에 등록된 모든 Interaction을 제거한다. (Default Interaction 제외)
-
현재 지도에 등록된 모든 이벤트리스너를 제거한다.
Name Type Description typeString 이벤트 타입
-
현재
ugmp.uGisMap에 등록된ugmp.layer를 삭제한다.Name Type Description uGisLayerKeyString 삭제할
ugmp.layer의 KEY. -
현재 지도에 등록된 모든 Interaction 사용 설정. (Default Interaction 포함)
Name Type Description stateBoolean 사용 설정 값.
-
마우스 휠줌 스크롤 시 AltKey 조합 설정 사용 여부를 설정한다.
Name Type Description stateBoolean 사용 설정 값.
-
지정된 Extent로 지도 영역 맞추기.
Name Type Description envelopArray.<Double> Extent.
-
로딩 심볼 표시 여부를 설정한다.
Name Type Description stateBoolean 사용 설정 값.
OpenLayers - uGisMapPlatForm API