Skip to content

Commit c316f77

Browse files
Fixed Formtting Errors
1 parent 760dfd7 commit c316f77

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/frontends/leaflet.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class LeafletLayer extends L.GridLayer {
112112
coords: Coords,
113113
element: KeyedHtmlCanvasElement,
114114
key: string,
115-
done = () => { },
115+
done = () => {},
116116
) {
117117
this.lastRequestedZ = coords.z;
118118

@@ -261,9 +261,7 @@ export class LeafletLayer extends L.GridLayer {
261261

262262
public rerenderTile(key: string) {
263263
for (const unwrappedK in this._tiles) {
264-
const wrappedCoord = this._wrapCoords(
265-
this._keyToTileCoords(unwrappedK),
266-
);
264+
const wrappedCoord = this._wrapCoords(this._keyToTileCoords(unwrappedK));
267265
if (key === this._tileCoordsToKey(wrappedCoord)) {
268266
this.renderTile(wrappedCoord, this._tiles[unwrappedK].el, key);
269267
}
@@ -301,9 +299,7 @@ export class LeafletLayer extends L.GridLayer {
301299

302300
public rerenderTiles() {
303301
for (const unwrappedK in this._tiles) {
304-
const wrappedCoord = this._wrapCoords(
305-
this._keyToTileCoords(unwrappedK),
306-
);
302+
const wrappedCoord = this._wrapCoords(this._keyToTileCoords(unwrappedK));
307303
const key = this._tileCoordsToKey(wrappedCoord);
308304
this.renderTile(wrappedCoord, this._tiles[unwrappedK].el, key);
309305
}

0 commit comments

Comments
 (0)