-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Symbol layer items disappear when text-field is an empty string #6160
Comments
The same issue can be seen also with version 0.44.0. However, with version 0.43.0 the symbols stay visible in the JSBin example. |
Thanks for reporting this @mikkom , and for including an example reproducing it. Tweaked the jsbin to center on the area: https://jsbin.com/jagugeqele/edit?html,output - you should be able to see the unlabeled dot fade out right after the map loads. cc @ChrisLoer @ansis |
Empty text strings do not have any collision boxes so the collision index check was never done and the text was not counted as "placed". This fixes that by making "placed" the default when the feature has text. fix #6160
Empty text strings do not have any collision boxes so the collision index check was never done and the text was not counted as "placed". This fixes that by making "placed" the default when the feature has text. fix #6160
That was fast. Thanks @ansis & @anandthakker 🙂 |
hi. i have an apposite problem. when i add a text field the symbols disappear. i searched a lot and i used a lot of suggestions. but none of them didn't work for me. please help me. that's my code: private void addSymbolToMap(String name, LatLng point) { |
Hi @azadeh18 it looks like you're using GL Native not GL JS. If you're looking for debugging help, your best bet is to either ask your question on Stack Overflow or contact Mapbox support |
mapbox-gl-js version: 0.44.1
Steps to Trigger Behavior
Expected Behavior
All the symbols are visible.
Actual Behavior
Symbols that have text-field set as empty string disappear on close enough zoom-levels.
Simple example which reproduces the issue: https://jsbin.com/weraqecesa/edit?html,output
See for example the area around Muir Beach where we have one symbol without text which disappears when zooming in. If we change the symbol to have non-empty text-field it stays visible.
The text was updated successfully, but these errors were encountered: