Cesium開發遇到的問題解決

問題1:

後臺緩存收回進程無法釋放上下文[/BUSINESS的緩存的[10]%-請考慮增加緩存的最大大小。

原因:出現該問題是Tomcat啓動時,佔用的緩存較大,Tomcat默認的緩存是10000KB.
解決:需要調整Tomcat目錄下\conf\context.xml文件中的緩存的最大值,需要添加在<Context></Context>標籤內,添加項如下
<Resources cachingAllowed="true" cacheMaxSize="8000000" />

參考:https://blog.csdn.net/qq_32744037/article/details/128741417  

問題2:

加載3D Tiles的時候報如下錯誤:

DeveloperError: Expected width to be greater than 0, actual value was 0 Error

修改:

maximumScreenSpaceError : 32,
skipLevelOfDetail : true,
immediatelyLoadDesiredLevelOfDetail : true

 參考:https://community.cesium.com/t/developererror-expected-width-to-be-greater-than-0-actual-value-was-0-error/6717

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章