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

[Feat] Adding minZoom & maxZoom properties to TextLayer #9409

Open
daniel-bar opened this issue Feb 4, 2025 · 1 comment
Open

[Feat] Adding minZoom & maxZoom properties to TextLayer #9409

daniel-bar opened this issue Feb 4, 2025 · 1 comment
Labels

Comments

@daniel-bar
Copy link

Target Use Case

Using the prop for TextLayer.

I don't mind doing this myself, just tell me if there is anything that I can't be aware of that I need to consider please.

Proposal

I guess I can just use the TileLayer for ref?

@Pessimistress
Copy link
Collaborator

Under the current model, you are recommended to do one of the following:

Option 1. Update the TextLayer with a new visible value on zoom change
Option 2. Provide a layerFilter callback to dynamically show/hide the TextLayer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants