Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the FeatureConverter synchronizes PolygonGeomrtry, Outlines are not synchronized. #1228

Open
XiaofengZeng opened this issue Sep 3, 2024 · 2 comments

Comments

@XiaofengZeng
Copy link

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.

Snipaste_2024-09-03_23-54-40

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.

Snipaste_2024-09-03_23-30-37
Snipaste_2024-09-03_23-30-53

I'd appreciate it if you can help me figure out.

dependencies

  • "cesium": "1.115.0",
  • "ol": "9.1.0",
  • "olcs": "2.20.0",
@gberaudo
Copy link
Member

gberaudo commented Oct 1, 2024

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)

@XiaofengZeng
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants