Skip to content

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

@XiaofengZeng

Description

@XiaofengZeng

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions