Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cesium 1.66 - 1.68 label fuzzy #8807

Closed
CaptainYYH opened this issue Apr 28, 2020 · 2 comments
Closed

cesium 1.66 - 1.68 label fuzzy #8807

CaptainYYH opened this issue Apr 28, 2020 · 2 comments

Comments

@CaptainYYH
Copy link

i found cesium 1.65 - 1.68 label fuzzy 。plz update

example

<script src="https://cesium.com/downloads/cesiumjs/releases/1.68/Build/Cesium/Cesium.js"></script>
<script> var viewer = new Cesium.Viewer('cesiumContainer');

var citizensBankPark = viewer.entities.add({
name : 'Citizens Bank Park',
position : Cesium.Cartesian3.fromDegrees(-75.166493, 39.9060534),
point : {
pixelSize : 5,
color : Cesium.Color.RED,
outlineColor : Cesium.Color.WHITE,
outlineWidth : 2
},
label : {
text : 'Citizens Bank Park',
font: '32px Helvetica',
scale: 0.5,
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
outlineWidth : 2,
verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
pixelOffset : new Cesium.Cartesian2(0, -9)
}
});
viewer.scene.postProcessStages.fxaa.enabled = false
viewer.zoomTo(viewer.entities);

</script>
@CaptainYYH CaptainYYH changed the title cesium 1.65 - 1.68 label fuzzy cesium 1.66 - 1.68 label fuzzy Apr 28, 2020
@CaptainYYH
Copy link
Author

and 3dtiles also have this bug

@mramato
Copy link
Contributor

mramato commented Apr 28, 2020

Cesium's default behavior changed in 1.66. From the 1.66 change log:

  • useBrowserRecommendedResolution flag in Viewer and CesiumWidget now defaults to true. This ensures Cesium rendering is fast and smooth by default across all devices. Set it to false to always render at native device resolution instead at the cost of performance on under-powered devices. #8548

To get the previous behavior back set

viewer.useBrowserRecommendedResolution = false

@mramato mramato closed this as completed Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants