jsapi-resources icon indicating copy to clipboard operation
jsapi-resources copied to clipboard

Label issues when rendering basemap in 3D SceneView

Open jlczapski opened this issue 3 years ago • 5 comments

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

  • Browser: Firefox 98 on Windows 10

Operating System

  • OS: Windows 10* 64-bit
  • Device: Dell Laptop

Additional context Anything else that will help.

jlczapski avatar Apr 05 '22 14:04 jlczapski

Is anyone able to assist with this?

jlczapski avatar Apr 20 '22 08:04 jlczapski

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 avatar May 18 '22 14:05 Fuhji

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 avatar May 20 '22 07:05 Fuhji

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?!

Fuhji avatar Aug 10 '22 07:08 Fuhji

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.

andygup avatar Aug 10 '22 14:08 andygup