new ov.VectorLayer()
向量圖層
Extends
Members
- 
    
boundary
 - 
    
    
Boundary
Properties:
Name Type Description BoundaryGeoBoundary 圖層邊界。
 - 
    
readonlyname
 - 
    
    
圖層名稱
Properties:
Name Type Description nameString 名稱。
 - 
    
show
 - 
    
    
圖層顯示
Properties:
Name Type Description showBoolean 是否顯示圖層。
 - 
    
tooltipSetting
 - 
    
    
Tooltip設定。
Properties:
Name Type Description positionModeov.TOOLTIP_POSITION_MODE 定位模式。
showBoolean 是否顯示。
offsetGeoPoint 偏移。
styleObject Tooltip style,可自行擴充。
preProcessingov.Layer~tooltipPreProcessingCallback 內容前處理方法。
positionPreProcessingov.Layer~tooltipPositionPreProcessingCallback 座標前處理方法。
 
Methods
- 
    
changeToDefaultImage()
webgl/ov-VectorLayer.js, line 166 - 
    
    
    
還原成預設群集顯示的Icon圖片。
 - 
    
changeUserDefineImage(url)
webgl/ov-VectorLayer.js, line 159 - 
    
    
    
更換群集顯示的Icon圖片。
Name Type Description urlString Icon圖片的網址。
 - 
    
inherited enableOrderIndependentTransparency(enable)
webgl/ov-Layer.js, line 280 - 
    
    
    
透明度是否使用OIT演算法,正確性較高但效能會降低。
Name Type Description enableBoolean 啟用OIT透明。
 - 
    
getAttrs(id, type, callback)
webgl/ov-VectorLayer.js, line 43 - 
    
    
    
取得指定圖素的所有屬性值。
Name Type Description idNumber 指定圖素的ID。
typeov.ENUM_VECTOR_ENTITY_TYPE 指定圖素的Type。
callbackov.VectorLayer~getAttrsCallback 非同步取得屬性後的回呼。
 - 
    
getClusterPointIDs(clusterID){Array.<Number>}
webgl/ov-VectorLayer.js, line 183 - 
    
    
    
取得叢集下所有圖素ID。
Name Type Description clusterIDNumber 叢集ID。
Returns:
Type Description Array.<Number> 圖素ID。  - 
    
getColAndAttrs(id, callback)
webgl/ov-VectorLayer.js, line 16 - 
    
    
    
取得指定圖素的所有屬性欄位名稱和屬性值。
Name Type Description idNumber 指定建物的ID。
callbackov.VectorLayer~getColAndAttrsCallback 非同步取得屬性後的回呼。
 - 
    
getFieldDefine(type, callback)
webgl/ov-VectorLayer.js, line 72 - 
    
    
    
取得指定類別的欄位名稱。
Name Type Description typeov.ENUM_VECTOR_ENTITY_TYPE 指定的類別。
callbackov.VectorLayer~getFieldDefineCallback 非同步取得欄位名稱資訊後的回呼。
 - 
    
getGeo(id, type, callback)
webgl/ov-VectorLayer.js, line 58 - 
    
    
    
取得指定圖素的幾何資訊。
Name Type Description idNumber 指定圖素的ID。
typeov.ENUM_VECTOR_ENTITY_TYPE 指定圖素的Type。
callbackov.VectorLayer~getGeoCallback 非同步取得幾何資訊後的回呼。
 - 
    
inherited getHeader(callback)
webgl/ov-Layer.js, line 96 - 
    
    
    
取得圖層標頭物件。
Name Type Description callbackov.Layer~setOnGetHeaderCallback 請求標頭物件的回呼,不給則同步回傳(不保證回傳速度)。
 - 
    
inherited goto(callback)
webgl/ov-Layer.js, line 288 - 
    
    
    
飛到圖層的位置。
Name Type Description callbackov.Layer~gotoCallback 移動完成後執行的回呼。
 - 
    
gotoEntity(id, type)
webgl/ov-VectorLayer.js, line 136 - 
    
    
    
飛行至指定圖素。
Name Type Description idNumber 指定圖素的ID。
typeov.ENUM_VECTOR_ENTITY_TYPE 指定圖素的類型。
 - 
    
searchByDistance(epsg, geo, distance, type, sql, callback)
webgl/ov-VectorLayer.js, line 122 - 
    
    
    
查詢在指定幾何範圍以內的圖素,並以SQL篩選。
Name Type Description epsgNumber 幾何的EPSG。
geoGeoPolygon 指定幾何。
distanceNumber 指定距離,單位公尺。
typeov.ENUM_VECTOR_ENTITY_TYPE 查詢圖素的類型。
sqlString SQL篩選條件。
callbackov.VectorLayer~searchByDistanceCallback 非同步查詢的回呼。
 - 
    
searchByInclude(epsg, geo, type, sql, callback)
webgl/ov-VectorLayer.js, line 104 - 
    
    
    
查詢被指定幾何包圍的圖素,並以SQL篩選。
Name Type Description epsgNumber 幾何的EPSG。
geoGeoPolygon 指定幾何。
typeov.ENUM_VECTOR_ENTITY_TYPE 查詢圖素的類型。
sqlString SQL篩選條件。
callbackov.VectorLayer~searchByIncludeCallback 非同步查詢的回呼。
 - 
    
searchBySQL(sql, type, callback)
webgl/ov-VectorLayer.js, line 87 - 
    
    
    
以SQL條件查詢圖層中的圖素。
Name Type Description sqlString SQL查詢條件。
typeov.ENUM_VECTOR_ENTITY_TYPE 查詢的圖素類型。
callbackov.VectorLayer~searchBySQLCallback 非同步查詢的回呼。
 - 
    
inherited setAllowHoverEntity(allow)
webgl/ov-Layer.js, line 199 - 
    
    
    
設定圖層的圖素是否能Hover。
Name Type Description allowBoolean 是否能Hover。
 - 
    
inherited setAllowSelectEntity(allow)
webgl/ov-Layer.js, line 207 - 
    
    
    
設定圖層的圖素是否能被選取。
Name Type Description allowBoolean 是否能被點選。
 - 
    
inherited setDepthFunc(depthFunc)
webgl/ov-Layer.js, line 313 - 
    
    
    
設置圖層深度測試的方式。
Name Type Description depthFuncov.DEPTH_FUNC 深度測試的方式。
 - 
    
inherited setDrawSelectedEntityOutline(isDraw)
webgl/ov-Layer.js, line 151 - 
    
    
    
設定圖層的圖素是否顯示outline。
Name Type Description isDrawBoolean 是否顯示。
 - 
    
inherited setEntitySelected(entityID)
webgl/ov-Layer.js, line 324 - 
    
    
    
設定圖素選取狀態。
未選取則變成選取狀態。
選取則變成未選取狀態。
-1清除所有選取狀態。Name Type Description entityIDNumber 圖素ID。
 - 
    
inherited setFadeNearFar(near, far){Boolean}
webgl/ov-Layer.js, line 272 - 
    
    
    
設定圖層開始淡出與完全消失的距離。
Name Type Description nearNumber 開始淡出的距離。
farNumber 完全消失的距離。
Returns:
Type Description Boolean 設定是否成功,當near > far時,會失敗。  - 
    
inherited setHide(mode)
webgl/ov-Layer.js, line 305 - 
    
    
    
設定圖層隱藏模式。
Name Type Description modeov.HIDE 隱藏模式。
 - 
    
inherited setHoverEntityHighlightColor(color, opacity)
webgl/ov-Layer.js, line 188 - 
    
    
    
設定圖層圖素的Hover高亮顏色。
Name Type Description colorov.Color Hover高亮的顏色。
opacityNumber 不透明度。
 - 
    
inherited setOffset(x, y, z){Boolean}
webgl/ov-Layer.js, line 218 - 
    
    
    
設定圖層的公尺平移量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。
Name Type Description xNumber 向東西方向偏移,單位為公尺。
yNumber 向南北方向偏移,單位為公尺。
zNumber 向垂直於地表方向偏移,單位為公尺。
Returns:
Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。  - 
    
setOnClickEntity(callback)
webgl/ov-VectorLayer.js, line 144 - 
    
    
    
設定此圖層圖素被點擊時的回呼。
Name Type Description callbackov.VectorLayer~setOnClickEntityCallback 圖素被點擊時的回呼。
 - 
    
inherited setOpacity(opacity)
webgl/ov-Layer.js, line 143 - 
    
    
    
設置圖層不透明程度。
Name Type Description opacityNumber 圖層不透明程度(0~1)。
 - 
    
inherited setOutlineColor(VisibleColor, HiddenColor)
webgl/ov-Layer.js, line 160 - 
    
    
    
設定選取圖層圖素的Outline顏色。
Name Type Description VisibleColorov.Color outline可視的顏色。
HiddenColorov.Color outline不可視的顏色。
 - 
    
inherited setResolutionScale(resolutionScale){Boolean}
webgl/ov-Layer.js, line 245 - 
    
    
    
設定圖層解析度條件的Scale比例。
Name Type Description resolutionScaleNumber 解析度條件的Scale比例(初始值1,越大越容易分裂,模型越細緻)。
Returns:
Type Description Boolean 是否設定成功。  - 
    
inherited setRotate(degree){Boolean}
webgl/ov-Layer.js, line 227 - 
    
    
    
設定圖層的旋轉量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。
Name Type Description degreeNumber 旋轉角度。
Returns:
Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。  - 
    
inherited setScale(scale){Boolean}
webgl/ov-Layer.js, line 236 - 
    
    
    
設定圖層的縮放量(目前僅支援PhotogrammetryModel、PointCloud、Model、ModelSet、Pipeline)。
Name Type Description scaleNumber 縮放比例。
Returns:
Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。  - 
    
inherited setSelectedEntityHighlightColor(color, opacity)
webgl/ov-Layer.js, line 176 - 
    
    
    
設定圖層圖素的選取高亮顏色。
Name Type Description colorov.Color 選取高亮的顏色。
opacityNumber 不透明度。
 - 
    
inherited setUseFade(useFade)
webgl/ov-Layer.js, line 262 - 
    
    
    
設定圖層是否開啟淡出功能。
Name Type Description useFadeBoolean 淡出開關。
 - 
    
inherited setZScale(zScale){Boolean}
webgl/ov-Layer.js, line 254 - 
    
    
    
設定圖層的ZScale(ZScale:越小圖層越不會被遮擋)。
Name Type Description zScaleNumber ZScale的值。
Returns:
Type Description Boolean 是否設定成功。  - 
    
showName(show)
webgl/ov-VectorLayer.js, line 174 - 
    
    
    
設定是否顯示點圖素名稱。
Name Type Description showBoolean 是否顯示點圖素名稱。
 
Type Definitions
- 
    
getAttrsCallback(attrs)
webgl/ov-VectorLayer.js, line 46 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject | null 結果物件。
- See:
 
 - 
    
getColAndAttrsCallback(attrs)
webgl/ov-VectorLayer.js, line 31 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject 屬性物件。
- See:
 
 - 
    
getFieldDefineCallback(attrs)
webgl/ov-VectorLayer.js, line 75 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject | null 結果物件。
- See:
 
 - 
    
getGeoCallback(attrs)
webgl/ov-VectorLayer.js, line 61 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject | null 結果物件。
- See:
 
 - 
    
searchByDistanceCallback(attrs)
webgl/ov-VectorLayer.js, line 125 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject | null 結果物件。
- See:
 
 - 
    
searchByIncludeCallback(attrs)
webgl/ov-VectorLayer.js, line 107 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject | null 結果物件。
- See:
 
 - 
    
searchBySQLCallback(attrs)
webgl/ov-VectorLayer.js, line 90 - 
    
    
    
    
    
    
    
        
Name Type Description attrsObject | null 結果物件。
- See:
 
 - 
    
setOnClickEntityCallback(id, pos, type)
webgl/ov-VectorLayer.js, line 147 - 
    
    
    
    
    
    
    
        
Name Type Description idNumber 圖素id。
posGeoPoint 滑鼠坐標。
typeov.ENUM_VECTOR_ENTITY_TYPE 點擊到的群集圖素類型。
- See: