Skip to content

Commit 5a90da3

Browse files
mojoaxelcamdecoster
authored andcommitted
feat: handle maxscale default in scaleExtent
1 parent 3aad327 commit 5a90da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/components/modebar/buttons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function handleGeo(gd, ev) {
546546
var minscale = geoLayout.projection.minscale;
547547
var maxscale = geoLayout.projection.maxscale;
548548

549-
if(maxscale < 0) maxscale = Infinity;
549+
if(maxscale === -1) maxscale = Infinity;
550550
var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;
551551

552552
// make sure the scale is within the min/max bounds

0 commit comments

Comments
 (0)