Skip to content

Commit

Permalink
fix: don't transform tile size for GridLayer, reduce stitch seams
Browse files Browse the repository at this point in the history
Issue: #300
  • Loading branch information
alex4401 committed Jul 29, 2024
1 parent 07b92a9 commit 92a9975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/Background.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class Background extends EventEmitter {
// enables our internal content bounds measurements.
bounds,
// Use virtual tile size for the internal grid
tileSize: Leaflet.point( this.map.crs.fromPoint( this._physicalTileSize ) )._multiplyBy( 2 ),
tileSize: Leaflet.point( this._physicalTileSize ),
// Use physical tile size for canvas dimensions
physicalWidth: this._physicalTileSize[ 1 ],
physicalHeight: this._physicalTileSize[ 0 ],
Expand Down

0 comments on commit 92a9975

Please sign in to comment.