CesiumGS / CesiumGS/cesium

Camera.setView moves the camera further out than supported in 2D

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

Description

Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/87kyE-NhFVU

This moves the camera further away from the map than is supposed to be allowed in 2D

``` javascript
var viewer = new Cesium.Viewer('cesiumContainer', { sceneMode : Cesium.SceneMode.SCENE2D });

viewer.camera.setView({
destination: Cesium.Cartesian3.fromDegrees(0, 0, 60000000)
});
```

Contributor guide

Open the contributing guide

Research direction

Start by running the 2D Viewer example from the issue and inspect the Camera.setView entry point and its 2D destination handling. Done means the same destination no longer moves the camera farther from the map than the supported 2D limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.