Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: handle maxscale default in scaleExtent
  • Loading branch information
mojoaxel authored and camdecoster committed Feb 18, 2025
commit dd635ee36c1435fb50a1839348f546721bd1192a
2 changes: 1 addition & 1 deletion src/components/modebar/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ function handleGeo(gd, ev) {
var minscale = geoLayout.projection.minscale;
var maxscale = geoLayout.projection.maxscale;

if(maxscale < 0) maxscale = Infinity;
if(maxscale === -1) maxscale = Infinity;
var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;

// make sure the scale is within the min/max bounds
Expand Down