取得圖素名稱。
圖素名稱。
取得圖素流水號。
圖素流水號。
設置圖素名稱。
是否設置成功。
設定滑鼠左鍵點擊事件,設成null可取消。
滑鼠左鍵按一下實體時要執行的函式。
設定滑鼠進入圖素事件。
滑鼠進入圖素時要執行的函式。
設定滑鼠離開圖素事件。
滑鼠離開圖素時要執行的函式。
設定Tooltip。
鼠標懸停於實體上時顯示的提示字串。
更新圖素。
修改的參數,可部份更新。
const triA = [
new GeoPoint(120.18, 22.99, 70),
new GeoPoint(120.18, 22.99, 60),
new GeoPoint(120.19, 22.99, 60)
];
const triB = [
new GeoPoint(120.19, 22.99, 60),
new GeoPoint(120.19, 22.99, 70),
new GeoPoint(120.18, 22.99, 70)
];
const param = {
geo: [triA, triB],
drawLines: false,
drawColor: new ov.Color("#FF0000"),
fillColor: new ov.Color("#EBEBEB"),
texture: "rock.jpg";
fillOpacity: 1,
drawOpacity: 1,
epsg: 4326,
triangleTp: [
[new GeoPoint(0, 0), new GeoPoint(0, 1), new GeoPoint(1, 1)],
[new GeoPoint(1, 1), new GeoPoint(1, 0), new GeoPoint(0, 0)]
];
};
const triangleSet = customLayer.addTriangleSetEntity(param);
triangleSet.update({ drawColor: new ov.Color("#00FF00"), });
來源的圖層 。
是否顯示圖素。
自畫三角網格圖素