CesiumGS / CesiumGS/cesium

Web Mercator Weirdness

Open
#3,153 11 comments 0 reactions 0 assignees View on GitHub
category - terrain and imagery type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

I tried enabling WebMercator mode like this:

```
var viewer = new Cesium.Viewer('cesiumContainer', {
mapProjection: new Cesium.WebMercatorProjection(Cesium.Ellipsoid.WGS84)
});
//viewer.extend(Cesium.viewerCesiumInspectorMixin);
viewer.scene.morphTo2D(0);
```

But the world went awash in wacky weirdness:

![badmercator_v2](https://cloud.githubusercontent.com/assets/1235080/10854547/c5127544-7f12-11e5-894d-f0bae6ff9ddc.gif)

Is this a bug or am I just doing it wrong? If it's not a bug then we might need clearer docs on how to do this.

/cc @kring @abwood

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with Cesium.Viewer, WebMercatorProjection, and scene.morphTo2D using the snippet in the report. Trace how mapProjection is handled during the 2D morph and determine whether the rendering is incorrect or the usage needs clarification; done means the behavior is fixed or the supported setup is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.