Open XiaofengZeng opened 2 months ago
Hi @XiaofengZeng ,
Have you tried with another browser, or OS? It may also be a bug in CesiumJS, have you tried another version?
FYI, I just published a new version of ol-cesium that adds compatibility to all recent versions of CesiumJS.
What do you mean with "I copied the example document to run it locally, but the problem persisted."? Have you tried running the ol-cesium example locally? (cloning the repository, npm ci, npm start, open http://localhost:1234)
I've tried running it on Google Chrome, but it's still the same situation. I haven't tried other versions of CesiumJS yet, but I'll check out a recent version later to see if the issue still happens.
The build script for ol-cesium uses Linux commands, and right now, I only have devices with Windows operating systems, so I can't run the ol-cesium repository code locally. However, I created a new project, copied the entire example directory from the ol-cesium repository, and optimized the file reference paths based on the situation. I didn't modify any other core code.
I've been looking into this issue all day and still can't find the reason, so I'm bringing it up.
I added a vector layer (with polygon features and stroke style) in Openlayers, and this layer can be synced to OLCesium using the FeatureConverter.olPolygonGeometryToCesium method, but it only shows the filled geometry, not the outlines. I felt that the outline color wasn't syncing. When I tried setting the "altitudeMode" property to "clampToGround," the outlines were displayed.
I checked the vector example and confirmed that there is indeed an outline effect. Then I copied the example document to run it locally, but the problem persisted.
I'd appreciate it if you can help me figure out.
dependencies: