Esri / jsapi-resources

A collection of resources for developers using the ArcGIS Maps SDK for JavaScript.
https://developers.arcgis.com/javascript/latest/
Apache License 2.0
711 stars 563 forks source link

Label issues when rendering basemap in 3D SceneView #399

Closed jlczapski closed 1 year ago

jlczapski commented 2 years ago

Describe the bug When adding a 2D basemap to a 3D SceneView through the ArcGis JS API, the labels for city, town names etc. get cut off in places and the font sizes seem tiny for certain basemaps. I thought the issue may have come from our custom configuration but I can see the same problem on the documentation here.

2D Map: 2d_map

3D Scene: 3d_scene

3D Scene on docs: docs_issue

Expected behavior Labels should display the same across 2D and 3D views.

Reproduce the issue Zoom into a country (e.g. UK) on the demo map viewer at this link to see the labels rendering at very small font sizes & also being clipped after a certain length.

Browser

Operating System

Additional context Anything else that will help.

jlczapski commented 2 years ago

Is anyone able to assist with this?

Fuhji commented 2 years ago

The same basemap applied to a Map View works well, but the same basemap applied to a Scene View has the smaller label issue as seen in that official sample. It means our users complain that the font is too small so as to be unreadable.

Using the ESRI Vector style editor does let you increase the font size for each element of the basemap, but you then his the issue where labels are cropped/clipped.

Is this something others are finding, or is this Just How It Is and no fixes are likely to be incoming? The ESRI community forums also have discussions on this and the only answer was 'make fonts bigger'.

Fuhji commented 2 years ago

A workaround is the set the SceneView qualityProfile to low so although the basemap becomes fuzzier/less sharp, the labels are now readable. It would be nice to have more granular control as this is a performance setting, but semi-solves the unreadable basemap issue for now (although the same problem with labels being cropped when font size increases is still visible)

https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#qualityProfile

The same area with high (left) and low (right) set:

image

Fuhji commented 2 years ago

If this is not seen as a bug it feels like a serious flaw that labels are unreadable when in SceneView. Surely this is an issue for anyone using SceneView?!

andygup commented 2 years ago

Tagging @SaschaBrunnerCH.

@Fuhji @jlczapski please note, issues opened here should be related to the content in this repo, for example there are TypeScript and ESM samples. For all other questions, it's recommended to post on the community site or open a support ticket.