Skip to content

Commit

Permalink
change var to const/let (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeshShahapur authored Dec 23, 2022
1 parent 16cbd72 commit 1087b94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mapmixins/BoxCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ L.Map.BoxCollector = L.Map.BoxZoom.extend({
this._point = this._map.mouseEventToContainerPoint(e);

this._bounds = L.bounds(this._startPoint, this._point);
let size = this._bounds.getSize();
const size = this._bounds.getSize();

L.DomUtil.setPosition(this._box, this._bounds.min);

Expand Down Expand Up @@ -124,8 +124,8 @@ L.Map.BoxCollector = L.Map.BoxZoom.extend({
this._map.containerPointToLatLng(this._bounds.getTopRight())
);

let zoom = this._map.getZoom();
let center = this._map.getCenter();
const zoom = this._map.getZoom();
const center = this._map.getCenter();

// calls the `project` method but 1st updates the pixel origin - see https://github.com/publiclab/Leaflet.DistortableImage/pull/344
bounds = this._map._latLngBoundsToNewLayerBounds(bounds, zoom, center);
Expand Down

0 comments on commit 1087b94

Please sign in to comment.