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

Hide location name when it overlaps machine count on map #565

Conversation

ChrisSMendoza
Copy link

@ChrisSMendoza ChrisSMendoza commented Dec 13, 2024

Overview

Attempts to fix #540. Just tried what @RyanTG had already suggested and it seems to work (in a single case):

Perhaps changing the order of the symbollayers will help.

I haven't really tested this, but I'll play around with the app some more. Would an automated test be needed? Seems like it'd be a little involved.

Changes

  • Render location name before machine count to hide on overlap

Before

image

After

image

Notes

  • Warning is shown after the text SymbolLayer is moved, something about the ID changing:
    WARN Mapbox [warning] Changing id from: symbol-id1 to symbol-id2, changing of id is supported. However, this goes away once the app is reloaded.

@ChrisSMendoza
Copy link
Author

Wait, realized it's always hiding the text, regardless of how zoomed in or if it's actually overlapping the machine count 🤦

image
image

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

Successfully merging this pull request may close these issues.

Better management of overlapping marker labels
1 participant