We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aad327 commit 5a90da3Copy full SHA for 5a90da3
src/components/modebar/buttons.js
@@ -546,7 +546,7 @@ function handleGeo(gd, ev) {
546
var minscale = geoLayout.projection.minscale;
547
var maxscale = geoLayout.projection.maxscale;
548
549
- if(maxscale < 0) maxscale = Infinity;
+ if(maxscale === -1) maxscale = Infinity;
550
var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;
551
552
// make sure the scale is within the min/max bounds
0 commit comments