CesiumGS / CesiumGS/cesium

Billboard were cutted off at edge of earth in android brower

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

Description

Forgive my poor english! When billboad at the edge of the map, it will be cutted off. Only in android webview.
Move the billboad to edge, now its fine
![image](https://user-images.githubusercontent.com/30366045/102035945-a6894900-3dfc-11eb-8242-9b5dc06367be.png)

**then move top just a little, some billboard shoud be hide. But part of it were cutted off.**
![image](https://user-images.githubusercontent.com/30366045/102035946-a6894900-3dfc-11eb-9b4e-599415af5ac2.png)

**In IOS safari , no problem like above.**

Source code
```javascript
var viewer = new Cesium.Viewer('cesiumContainer', {
selectionIndicator : true,
infoBox : false,
animation: false,
scene3DOnly: true,
selectionIndicator: false,
baseLayerPicker: false,
timeline: false,
homeButton: false,
fullscreenButton: false,
navigationInstructionsInitiallyVisible: false,
navigationHelpButton: false,
geocoder: false
});
viewer.scene.globe.depthTestAgainstTerrain = false;
viewer.scene.fxaa = true;
viewer.scene.postProcessStages.fxaa.enabled = true;
$.getJSON ("./data/demo.json", function (result) {
result.data.forEach(function(value,index,array){
viewer.entities.add({
name : value.name,
position: Cesium.Cartesian3.fromDegrees(value.longitude, value.latitude), //
billboard: {
image: "./images/target.png",
color: getStatus(value.status),
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
sizeInMeters: false,
scale: 0.5,
scaleByDistance: new Cesium.NearFarScalar(1.5e2, 1.5, 1.0e6, 1.0),
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
},
});
})
```
Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the provided Cesium.Viewer setup, billboard configuration, data/demo.json, and images/target.png in an Android WebView. Compare billboards positioned at the map edge with the same case in iOS Safari. Done means edge billboards are not incorrectly clipped in Android WebView.

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
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.