Skip to content

Commit 2093ef9

Browse files
committed
fix 漏提交
1 parent 7ebc02d commit 2093ef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/leaflet/core/Proj4Leaflet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ export var CRS = L.Class.extend({
147147
this._scales = this._toProj4Scales(this.options.scales);
148148
} else if (this.options.scaleDenominators && this.options.scaleDenominators.length > 0) {
149149
var scales = [];
150-
for (var i = 0; i < this.options.scaleDenominators.length; i++) {
150+
for (let i = 0; i < this.options.scaleDenominators.length; i++) {
151151
scales[i] = 1 / this.options.scaleDenominators[i];
152152
}
153153
this._scales = this._toProj4Scales(scales);
154154
} else if (this.options.resolutions && this.options.resolutions.length > 0) {
155155
this._scales = [];
156-
for (var i = this.options.resolutions.length - 1; i >= 0; i--) {
156+
for (let i = this.options.resolutions.length - 1; i >= 0; i--) {
157157
if (this.options.resolutions[i]) {
158158
this._scales[i] = 1 / this.options.resolutions[i];
159159
}

0 commit comments

Comments
 (0)