Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 388c0b0

Browse files
committed
chore: use dflt: -1 instad of null
1 parent df23838 commit 388c0b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎src/components/modebar/buttons.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ function handleGeo(gd, ev) {
551551
var minscale = geoLayout.projection.minscale;
552552
var maxscale = geoLayout.projection.maxscale;
553553

554+
if(maxscale < 0) maxscale = Infinity;
554555
var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;
555556

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

‎src/plots/geo/layout_attributes.js‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /