Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Nov 15, 2019
1 parent 7fbc71b commit 971ba49
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class VectorTileLayer extends TileLayer {
const spriteSheetImageData = await loadSpriteSheetImageData(styleAndSprites.spriteMeta.png);
const data = {
...styleAndSprites,
spriteSheetImageData: spriteSheetImageData
spriteSheetImageData
};
stopLoading(SOURCE_DATA_ID_ORIGIN, requestToken, data, {});
} catch(error) {
Expand Down Expand Up @@ -166,6 +166,9 @@ export class VectorTileLayer extends TileLayer {
}

const imageData = this._getSpriteImageData();
if (!imageData) {
return;
}
addSpriteSheetToMapFromImageData(newJson, imageData, mbMap);

//sync layers
Expand Down

0 comments on commit 971ba49

Please sign in to comment.