Artifacts in Polygon Fill (Holes) and Camera Zoom Issues with Custom Lambert Conformal Conic Projection in 2D Mode
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 15.8k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
What happened?
I am implementing a custom MapProjection (Lambert Conformal Conic) in Cesium. I am loading a GeoJSON datasource (countries) in SCENE2D with MapMode2D.ROTATE.
While the polygon borders (outlines) are projected and rendered correctly, the fills are rendering with significant artifacts (holes/gaps) or missing entirely. Additionally, the camera zoom behavior is erratic; I am unable to zoom in or out effectively.
Reproduction steps
Create a custom class implementing MapProjection using LCC math.
Initialize Viewer with sceneMode: SceneMode.SCENE2D and mapMode2D: MapMode2D.ROTATE.
Load a GeoJSON file containing country polygons.
Observe that borders align with the projection, but fills are broken.
Expected Behavior: The polygon fill should completely cover the area defined by the border, adapting to the curvature of the custom projection.
Actual Behavior: The fill appears fragmented with visible holes, suggesting a triangulation or granularity mismatch. The camera also locks up or fails to zoom.
Sandcastle example
Linked ticket :
https://github.com/CesiumGS/cesium/issues/3877
https://github.com/CesiumGS/cesium/issues/11096
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Sandcastle example and the custom MapProjection implementation, reproducing the GeoJSON country polygons in SCENE2D with MapMode2D.ROTATE. Compare the behavior with issues #3877 and #11096; done means polygon fills cover their projected borders without holes and camera zoom works reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100