TextLayer text should not appear smaller when zooming in on it. [Bug]
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
Description
When displaying text using TextLayer I expect the text to stay constant in size independent of zoom. In the below codepen example I see that when zooming in the text becomes smaller. Observe for example the label "Z=-500" which is placed at [0, 0, -500]. Using the scroll wheel to zoom in it becomes almost unreadable small.
Flavors
- React
- Python/Jupyter notebook
- MapboxLayer
- GoogleMapsOverlay
- CartoLayer
- DeckLayer/DeckRenderer for ArcGIS
Expected Behavior
I expect text to have constant size in pixels independent of zoom.
Steps to Reproduce
Simple codepen example:
https://codepen.io/nilscb/pen/mdpjayE?editors=0011
Environment
- Framework version: deck.gl@8.7.5
- Browser: google chrome Version 101.0.4951.54
- OS: Windows
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen reproduction and the TextLayer implementation, focusing on how zoom affects the label "Z=-500" at [0, 0, -500]. Verify the behavior in deck.gl@8.7.5, then confirm that TextLayer text remains constant in pixel size while zooming in and out.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100