Skip to content

Commit 3aad327

Browse files
mojoaxelcamdecoster
authored andcommitted
chore: use dflt: -1 instad of null
1 parent bdcf7fe commit 3aad327

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -546,6 +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;
549550
var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;
550551

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

Diff for: src/plots/geo/layout_attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ var attrs = module.exports = overrideAll({
190190
maxscale: {
191191
valType: 'number',
192192
min: 0,
193-
dflt: null,
193+
dflt: -1,
194194
description: [
195195
'Maximal zoom level of the map view.',
196196
'A maxScale of *2* (200%) corresponds to a zoom level',

0 commit comments

Comments
 (0)