通過iCLientClassic的(de)SetLayerStatusService對map中的(de)圖層設置顯隐後顯示。但實際操作時(shí)發現設置圖層的(de)visible明明都相同,但圖層有時(shí)候會無法顯示
打開浏覽器的(de)network查看請求時(shí),無法顯示的(de)時(shí)候的(de)url如下:
https://localhost:8090/iserver/services/map-testmap/rest/maps/RoadMap/tileImage.png?transparent=true&cacheEnabled=false&layersID=wwwn_8917_2b3883dbba544bdcb83b1cb65953b590&width=256&height=256&x=16&y=74&scale=-1&redirect=false&t=1679286331900&overlapDisplayed=false
然後正常顯示時(shí)的(de)url如下:
https://localhost:8090/iserver/services/map-testmap/rest/maps/RoadMap/tileImage.png?transparent=true&cacheEnabled=false&layersID=wwwn_8917_8475b06c827f41809976088bc4f8561c&width=256&height=256&x=16&y=75&scale=0.000055383279935350536&redirect=false&t=1679286715076&overlapDisplayed=false
唯一(yī / yì /yí)的(de)區别是(shì)scale分别爲(wéi / wèi)-1和(hé / huò)0.000055383279935350536。但設置參數時(shí)我這(zhè)邊并沒有設置過scale。
另外,成功顯示出(chū)一(yī / yì /yí)次後刷新頁面後也(yě)可以(yǐ)正常顯示。
請問造成這(zhè)樣的(de)效果是(shì)什麽原因導緻的(de)。