We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 549bf20 + 1abac5e commit d4e1655Copy full SHA for d4e1655
src/util/common.js
@@ -553,9 +553,9 @@ var util = {
553
var minLevel = Math.min(0, Math.floor(Math.log(Math.min(
554
(mapW || tileWidth) / tileWidth,
555
(mapH || tileHeight) / tileHeight)) / Math.log(2))),
556
- maxLevel = Math.ceil(Math.log(Math.max(
+ maxLevel = Math.max(0, Math.ceil(Math.log(Math.max(
557
width / tileWidth,
558
- height / tileHeight)) / Math.log(2));
+ height / tileHeight)) / Math.log(2)));
559
var mapParams = {
560
node: node,
561
ingcs: '+proj=longlat +axis=esu',
0 commit comments