Skip to content

Commit

Permalink
Remove extra debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeLonewolf authored Dec 12, 2023
1 parent 29a1164 commit eb16c23
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions shieldlib/src/shield_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ class MaplibreGLSpriteRepository implements SpriteRepository {
update: boolean
): void {
if (update) {
console.log(`update ${spriteID}`);
this.map.removeImage(spriteID);
this.map.addImage(spriteID, image);
} else {
console.log(`add ${spriteID}`);
this.map.addImage(spriteID, image, { pixelRatio: pixelRatio });
}
}
Expand Down Expand Up @@ -125,7 +123,6 @@ export class AbstractShieldRenderer {
// Loop through each previously-loaded shield and re-render it
for (let [id, routeDef] of this._preFontImageCache.entries()) {
missingIconLoader(this._renderContext, routeDef, id, true);
console.log(`Updated ${id} post font-load`); // Example action
}

this._preFontImageCache.clear();
Expand Down

0 comments on commit eb16c23

Please sign in to comment.