Skip to content

fix(deck): stop capping new map fits at zoom 12 - #954

Draft
igorDykhta wants to merge 1 commit into
mainfrom
igr/deal-with-max-zoom
Draft

igorDykhta wants to merge 1 commit into
mainfrom
igr/deal-with-max-zoom

Conversation

@igorDykhta

@igorDykhta igorDykhta commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • New deck maps, and edits that rewrite fitToData, were saving maxZoom: 12. That city-scale cap left small areas such as buildings and neighborhoods zoomed out.
  • Those paths now omit fitToData.maxZoom unless the saved config already has a number. An existing cap is kept when the geometry, longitude/latitude, or arc endpoints change. With the field omitted, fit-to-data still stops at zoom 18.

Test plan

  • Create a map from a table of points or polygons clustered in a small area (a block or a campus). Fit-to-data should zoom in past 12. Previously it stopped there.
  • Open the saved map config. fitToData should have padding and no maxZoom.
  • Set fitToData.maxZoom to a low number such as 8, reload, and change the geometry column or the longitude/latitude columns. The fit should still stop at 8, and maxZoom should still be in the config.
  • Repeat with an arc layer: edit the source or target columns on a map that already has maxZoom, and on a new arc map that does not. The saved number stays; the new map does not gain maxZoom: 12.
  • Create a map from data that covers a large region, such as a country. It should still frame the full extent.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@igorDykhta igorDykhta changed the title fix(deck): remove maxZoom fit to bounds limit fix(deck): stop capping new map fits at zoom 12 Oct 19, 2026
@igorDykhta igorDykhta self-assigned this Oct 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant