自畫文字圖素
取得圖素名稱。
圖素名稱。
取得圖素參數。
圖素參數。
取得圖素流水號。
圖素流水號。
取得圖素類型。
圖素類型。
設置圖素名稱。
是否設置成功。
設定滑鼠左鍵點擊事件,設成null可取消。
滑鼠左鍵按一下實體時要執行的函式。
let metaData = "meta"entity.setOnClickListener((pos, attr, SN, name) => { console.log(metaData);}); 複製
let metaData = "meta"entity.setOnClickListener((pos, attr, SN, name) => { console.log(metaData);});
設定滑鼠進入圖素事件。
滑鼠進入圖素時要執行的函式。
設定滑鼠離開圖素事件。
滑鼠離開圖素時要執行的函式。
設定Tooltip。
鼠標懸停於實體上時顯示的提示字串。
更新圖素。
修改的參數,可部份更新。
const param = { geo = new GeoPoint(121, 22, 100), color = new ov.Color("#FFFFFF"), text = "測試文字", font = "新細明體", size = 14, borderColor = new ov.Color("#000000"), borderSize = 4, epsg = 4326};const text = customLayer.addTextEntity(param);text.update({ text: "字文試測" }); 複製
const param = { geo = new GeoPoint(121, 22, 100), color = new ov.Color("#FFFFFF"), text = "測試文字", font = "新細明體", size = 14, borderColor = new ov.Color("#000000"), borderSize = 4, epsg = 4326};const text = customLayer.addTextEntity(param);text.update({ text: "字文試測" });
使用指令參數更新圖素。
指令參數。
來源的圖層 。
是否顯示圖素。
自畫文字圖素