Title: [CHORE]: Update map trace `fitbounds` attribute to be enum instead of boolean · Issue #7912 · plotly/plotly.js · GitHub
Open Graph Title: [CHORE]: Update map trace `fitbounds` attribute to be enum instead of boolean · Issue #7912 · plotly/plotly.js
X Title: [CHORE]: Update map trace `fitbounds` attribute to be enum instead of boolean · Issue #7912 · plotly/plotly.js
Description: Description Update the map trace fitbounds attribute to be an enum instead of boolean. Why should this change be made? This will allow us to treat fitbounds in a similar way to the corresponding attribute for geo traces. Right now the au...
Open Graph Description: Description Update the map trace fitbounds attribute to be an enum instead of boolean. Why should this change be made? This will allow us to treat fitbounds in a similar way to the corresponding at...
X Description: Description Update the map trace fitbounds attribute to be an enum instead of boolean. Why should this change be made? This will allow us to treat fitbounds in a similar way to the corresponding at...
Opengraph URL: https://github.com/plotly/plotly.js/issues/7912
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[CHORE]: Update map trace `fitbounds` attribute to be enum instead of boolean","articleBody":"\u003c!-- \nInstructions (remove this section before submitting issue)\n\nThanks for your interest in plotly.js!\n\n- Use this template for maintenance work that does not change end-user behavior: dependency updates, build pipeline changes, CI/CD adjustments, internal refactors, lint/format/typing cleanup, or documentation updates.\n- For user-facing bugs use the **Bug report** template, and for new functionality use the **Feature request** template.\n- Before opening a new chore, please search for existing and closed issues to avoid duplicates.\n- Comments should add content to the discussion. Approbation comments such as *+1* will be deleted by the maintainers — use [GitHub reactions](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead.\n-->\n\n### Description\n\nUpdate the map trace `fitbounds` attribute to be an enum instead of boolean.\n\n### Why should this change be made?\n\nThis will allow us to treat `fitbounds` in a similar way to the corresponding attribute for geo traces. Right now the auto-fit for map traces skips choropleths because those would have to be handled at a different point in the code. As such, the attribute could just be on/off. If we add choropleth support in the future, the attribute schema will have to change. By making this change now before the release of v4.0, we won't have to worry about breaking anything.\n\n### Scope\n\n- Update the attribute\n- Update the schema and types\n\n### Notes\n\n- A user introduced a PR (#7911) that adds `fitbounds` to map traces, but it's built against master instead of v4.0\n- I'd like to make this change and then ask the user to adapt their PR to the v4.0 changes\n","author":{"url":"https://github.com/camdecoster","@type":"Person","name":"camdecoster"},"datePublished":"2026-07-20T18:50:46Z","url":"https://github.com/plotly/plotly.js/issues/7912"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3bbedbe-bfe0-4f61-51a3-80515bab4a87 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAFE:311640:31AF1D2:3F398F3:6B01D3C5 |
| html-safe-nonce | 83d0a000d9aea2fff26b224bd21bd1038ece4d22d677376a52f7c04afbbe8ff9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUZFOjMxMTY0MDozMUFGMUQyOjNGMzk4RjM6NkIwMUQzQzUiLCJ2aXNpdG9yX2lkIjoiMjI3Mjc0Nzc1Mzk2MjU5MTE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | da18c64af8fe8bf541e547a5052e8646603c6acc96fef9a9a039051ebb247deb |
| hovercard-subject-tag | issue:4932056215 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/7912/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b82cd604b511e46ecfc572711e6ddda581a62fffd08aeff85f2a7a68db530155/plotly/plotly.js/issues/7912 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b82cd604b511e46ecfc572711e6ddda581a62fffd08aeff85f2a7a68db530155/plotly/plotly.js/issues/7912 |
| og:image:alt | Description Update the map trace fitbounds attribute to be an enum instead of boolean. Why should this change be made? This will allow us to treat fitbounds in a similar way to the corresponding at... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | camdecoster |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width