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

Design proposal: Ability to style based on distance from the camera or legibility #161

Open
jwoodwardtfx opened this issue May 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jwoodwardtfx
Copy link

We use Maplibre GL JS to draw 3D road maps. This includes road names displayed along the roads themselves. These can become illegible if the road is some distance from the camera.

Is it possible to style items such as road names so they are no longer drawn if the distance from the camera is above some threshold? That is, when they will be illegible, don't bother drawing them.

For example, in the attached (an arbitrary example taken from Bing) the roads near the camera are legible (such as Cumbernauld Road and Redford Street), but those further away (in the top left corner) are not legible. Not drawing these would both improve performance and clean up the map.

(moved from #162)

234876074-acc2428c-41b5-49d1-ae78-0bc9cd752fdb

@HarelM
Copy link
Member

HarelM commented May 12, 2023

I think it's worth brining that up in the next TSC meeting, preferably with a definition of how the stylespec will look after with this addition.

@HarelM HarelM changed the title Ability to style based on distance from the camera or legibility [Feature] Ability to style based on distance from the camera or legibility May 12, 2023
@HarelM HarelM added the enhancement New feature or request label Dec 31, 2023
@HarelM HarelM changed the title [Feature] Ability to style based on distance from the camera or legibility Design proposal: Ability to style based on distance from the camera or legibility Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants