forked from MTSR/mapserver
Fix flickering when updatig new tile (attempt 2) (#387)
This commit is contained in:
parent
47f1446ec1
commit
ff1b0dc47a
@ -42,7 +42,10 @@ export default L.TileLayer.extend({
|
||||
tile.id = this.getImageId(coords.x, coords.y, coords.z);
|
||||
|
||||
// trigger callbacks
|
||||
tile.onload = () => done(null, tile);
|
||||
tile.onload = () => {
|
||||
tile.onload = undefined;
|
||||
done(null, tile);
|
||||
};
|
||||
tile.onerror = e => done(e, tile);
|
||||
|
||||
return tile;
|
||||
|
Loading…
Reference in New Issue
Block a user