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 18475c1

Browse files
committed
feat: handle maxscale default in scaleExtent
1 parent dd3189a commit 18475c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/components/modebar/buttons.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +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;
554+
if(maxscale ===-1) maxscale = Infinity;
555555
var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;
556556

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

0 commit comments

Comments
(0)

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