Skip to content

Commit

Permalink
FIX const decalration
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed May 17, 2023
1 parent 27db4dd commit c13c0f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions leaflet-maptilersdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,8 @@
}

const size = this.getSize();
const container = this._container;
gl = this._maptilerMap;
offset = this._map.getSize().multiplyBy(this.options.padding);
topLeft = this._map.containerPointToLayerPoint([0, 0]).subtract(offset);
const offset = this._map.getSize().multiplyBy(this.options.padding);
const topLeft = this._map.containerPointToLayerPoint([0, 0]).subtract(offset);

L.DomUtil.setPosition(this._container, this._roundPoint(topLeft));

Expand Down

0 comments on commit c13c0f6

Please sign in to comment.