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