I your are facing an issue on the PTV maps, that the clustering points disappear from the map.
If you zoom in, the normal points appear again.
One error which you might observe is a missing font that will throw an error in your browsers console.
https://vectormaps-resources.myptv.com/fonts/latest/Open%20Sans%20Regular,Arial%20Unicode%20MS%20Regular/0-255.pbf
=> 404 not found
- maplibre-gl we are using is: 4.0.2
- PTV Developer VectorMaps only supports Noto as a font
- The requested font is Open Sans Regular, Arial Unicode Regular
- Maplibre Demotiles provides this font - that is probably the reason why it works with demotiles
The maplibre style specification says, that the text-font defaults to "Open Sans Regular, Arial Unicode MS Regular"
(https://maplibre.org/maplibre-style-spec/layers/#text-font).
The maplibre example for a cluster layer sets a specific text-font like this (https://maplibre.org/maplibre-gl-js/docs/examples/cluster/):
map.addLayer({
id: 'cluster-count',
type: 'symbol',
source: 'earthquakes',
filter: ['has', 'point_count'],
layout: {
'text-field': '{point_count_abbreviated}',
'text-font': ['DIN Offc Pro Medium', 'Arial Unicode MS
Bold'],
'text-size': 12
}
});
If you set "text-font": [ "Noto Sans Regular" ], in your cluster-count layer definition the issue should be solved.