Skip to content

Commit

Permalink
Use linear interpolation, since trying to be fancy was actually worse
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman authored and semone committed Aug 29, 2015
1 parent aa398e1 commit 7cb6e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proj4leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
nextScale = this._scales[iZoom + 1];
scaleDiff = nextScale - baseScale;
zDiff = (zoom - iZoom);
return baseScale + scaleDiff * Math.pow(zDiff, nextScale / baseScale);
return baseScale + scaleDiff * zDiff;
}
},
});
Expand Down

0 comments on commit 7cb6e72

Please sign in to comment.