We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
maplibre-gl-js version: 2.1.6
Map
load
setData()
error
Map.isStyleLoaded()
GeoJSONSource.setData()
https://jsbin.com/yepihuc/3/edit?html,console,output
In step 6, Map.isStyleLoaded() should return false, as the GeoJSON file should still be loading.
false
In step 6, Map.isStyleLoaded() returns true.
true
The text was updated successfully, but these errors were encountered:
Fix SourceCache.loaded() always returning true following a load error (…
3fdc32c
…#1025) (#1026) * Fix SourceCache.loaded() always returning true following a load error * Update changelog * Add backticks in changelog entry
Fix SourceCache.loaded() returning true when a source load error occu…
8ed7229
…rs while the source still has pending loads (#1038) Fixes #1025
No branches or pull requests
maplibre-gl-js version: 2.1.6
Steps to Trigger Behavior
Map
with a GeoJSON source.Map
'sload
event to fire.setData()
on the GeoJSON source, passing a URL to a nonexistent GeoJSON file.Map
'serror
event to fire.setData()
on the GeoJSON source, this time passing a URL to a valid GeoJSON file.Map.isStyleLoaded()
immediately after the call toGeoJSONSource.setData()
.Link to Demonstration
https://jsbin.com/yepihuc/3/edit?html,console,output
Expected Behavior
In step 6,
Map.isStyleLoaded()
should returnfalse
, as the GeoJSON file should still be loading.Actual Behavior
In step 6,
Map.isStyleLoaded()
returnstrue
.The text was updated successfully, but these errors were encountered: