Skip to content

Commit

Permalink
Update ImageUtil.js, Fixes Issue #1307 (#1313)
Browse files Browse the repository at this point in the history
* Update ImageUtil.js

Change Keyword var to let in ImageUtil.js

* Changed let to const

Change Keyword let to const in src/util/ImageUtil.js

Co-authored-by: Sasha Boginsky <[email protected]>
  • Loading branch information
owaisali8 and sashadev-sky authored Dec 28, 2022
1 parent a53ffd9 commit 008785c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/ImageUtil.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
L.ImageUtil = {

getCmPerPixel(overlay) {
var map = overlay._map;
const map = overlay._map;

var dist = map
const dist = map
.latLngToLayerPoint(overlay.getCorner(0))
.distanceTo(map.latLngToLayerPoint(overlay.getCorner(1)));

Expand Down

0 comments on commit 008785c

Please sign in to comment.