Skip to content

Commit

Permalink
use leading true in debounced sources update
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Jun 1, 2022
1 parent 51c1180 commit da0762c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@globalfishingwatch/maplibre-gl",
"description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
"version": "2.1.9-gfw.21",
"version": "2.1.9-gfw.22",
"main": "dist/maplibre-gl.js",
"style": "dist/maplibre-gl.css",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion src/source/source_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class SourceCache extends Evented {
}

if (this.loaded()) {
this._source.fire(new Event('data', { dataType: 'sourcetiles', sourceId: this._source.id }));
this._source.fire(new Event('data', {dataType: 'sourcetiles', sourceId: this._source.id}));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/style/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ class Style extends Evented {
(id: string, transform: Transform) => {
this.sourceCaches[id].update(transform);
},
60
60, {leading: true}
);

_updateSources(transform: Transform) {
Expand Down

0 comments on commit da0762c

Please sign in to comment.