mapbox-gl-js
mapbox-gl-js copied to clipboard
Dynamic sources can't display GeoJSON correctly
Hi, I noticed it's impossible to use dynamic sources, due to corrupted GeoJSON features display.
Latest maplibre version (3.8.0) and chrome version (131) are used.
map.addSource('main', {
dynamic: true, // when "dynamic: false" is used all is OK
type: 'geojson',
data: {}
});
Almost all features I tried to display looks like this:
Here is a demo, you can switch "dynamic" and see the difference. https://codepen.io/qwioefsd/pen/zxOKjrZ
same for me
same for me
same for me And I can't use updateData. https://docs.mapbox.com/mapbox-gl-js/api/sources/#geojsonsource#updatedata
One up for this issue
This is still an issue, it appears to be a problem with fills and lines that span over multiple map tiles for any dynamic source. It will appear differently depending on your zoom level. With that in mind it shows up very consistently at high zoom levels. Here is a screen with a line and polygon drawn from the same source.