根據Cesium API,要切換資產廣告牌(或標籤)的可見性,您可以簡單地將billboard.show屬性指定爲false。當我試圖做到這一點,銫將與如何切換CZML實體廣告牌的可見性屬性(billboard.show)?
An error occurred while rendering. Rendering has stopped.
TypeError: undefined is not a function
...
This discussion從銫-dev的谷歌組誤差包括一些示例代碼來切換廣告牌能見度的開/關。如果您嘗試在CZML實體上顯示= false(此示例不使用CZML),則相同的代碼不起作用。
這裏是我試過
var asset = loadedCZML.entities.getById(id);
asset.billboard.show = false; //Error!
(loadedCZML是Cesium.CzmlDataSource
)