-
-
Notifications
You must be signed in to change notification settings - Fork 776
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
Text-field for cluster layer break display of clusters #2341
Comments
Thanks for taking the time to open this issue. |
Hi, I had the same issue and it turned out to be related to font connectivity. Now in the map settings of your example, I set to use the local font Roboto Regular and everything works. Also, it's likely that a separate server may be required for connecting multiple fonts. |
Please let me know if the analysis above is enough and this issue can be closed. |
Hi, I tried @pandochka-y solution, but it did not work for me. So, the local font thingy makes no difference, but there is something strange going on with the fonts itself. I tried different fonts with different results. Works:
Doesn't work:
It's more a work-around and I have no clue why this occurs and what is the problem behind. |
Can you create a small reproduction of the issue? The smaller the better, preferably everything in the same html page (no external link to map style etc). |
I just have exactly the same issue. clusters are totaly not working, invisible. no matter what I try. And even when I just run the example code (without any change) from the guide page. Can anyone please remove this bug? |
I can make the cluster example work in codepen. |
I just came across the same issue. Maybe it would be benefitial to change the font in the example to something which works on more systems, to avoid confusion when copying examples. ps: Also would it be possible to change the style in all examples to some style which works without API key? Although Maplibre is kind of connected to Maptiler and not long ago there were barely any open vector tiles available this changed recently and it would be awesome if examples could simply be copied and run without making any changes. |
Changing the examples to use a free vector source is under discussion by the board as noted here: |
I tried to make an own cluster map out of example from docs. Cant make the labels of cluster be displayed. If I tried to just check the example in code pen, the problem occures there as well.
It may be an issue with the
'text-field': '{point_count_abbreviated}'
in layout, because if I comment this line out, the clusters will be displayed on the map.maplibre-gl-js version: 2.4.0
browser: Chrome, Firefox
Steps to Trigger Behavior
Link to Demonstration
link to codepen
Expected Behavior
Clusters with labels.
Actual Behavior
Clusters will not be displayed
The text was updated successfully, but these errors were encountered: