Skip to content

docs(core): add standalone multi-canvas cities example - #10492

Draft
ibgreen-openai wants to merge 1 commit into
ib/multi-canvas-rfcfrom
codex/multi-canvas-example
Draft

docs(core): add standalone multi-canvas cities example#10492
ibgreen-openai wants to merge 1 commit into
ib/multi-canvas-rfcfrom
codex/multi-canvas-example

Conversation

@ibgreen-openai

@ibgreen-openai ibgreen-openai commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Goal

Provide a complete, easy-to-run example of the multi-canvas API without mixing demo code into the core implementation review.

Changes

  • Add a standalone TypeScript/Vite cities app rendering New York, London, Tokyo, and Sydney into four canvases owned by one Deck instance.
  • Demonstrate independent views, controllers, basemaps, picking/tooltips, and per-view zoom widgets while sharing a device and layer stack.
  • Link the example from the multi-canvas developer guide.

No core implementation changes are included in this PR.

Review stack

  1. fix(core): position widgets relative to their canvas #10491 (merged) — widget/tooltip positioning preparation.
  2. RFC/POC: Extend View system to support multi-canvas rendering #10229 — core multi-canvas implementation, rebased directly onto master.
  3. This PR — standalone example, stacked on RFC/POC: Extend View system to support multi-canvas rendering #10229.

Validation

  • ./node_modules/.bin/tsc -p modules/core/tsconfig.json --noEmit --pretty false
  • yarn test-headless test/modules/core/lib/view-manager.spec.ts test/modules/core/lib/deck.spec.ts test/modules/core/lib/deck-renderer.spec.ts test/modules/core/passes/layers-pass.spec.ts test/modules/core/passes/pick-layers-pass.spec.ts test/modules/core/lib/deck-picker.spec.ts test/modules/core/lib/widget-manager.spec.ts test/modules/core/lib/tooltip.spec.ts test/modules/mapbox/mapbox-overlay.spec.ts --retry 1 --silent — 91 passing tests.
  • ./node_modules/.bin/esbuild test/apps/multi-canvas-cities/app.ts --bundle --format=esm --platform=browser --external:@deck.gl-community/basemap-layers --outfile=/private/tmp/deck-gl-multi-canvas-cities.js
  • yarn test-website — passes, including the monorepo build; existing dependency source-map and unrelated broken-anchor warnings remain.
  • Full headless browser suite on the restacked branch: 825 tests passed across 201 files; one unrelated LoadingWidget test fails identically on pristine master.
  • The inherited strict Mapbox integration regression passes repeatedly after deterministic first-draw synchronization.
  • yarn build passes on current master plus the feature stack.
  • Repository pre-commit lint/format checks and 21 Node smoke tests pass.

@coveralls

coveralls commented Jul 27, 2026

Copy link
Copy Markdown

Coverage Status

Coverage is 83.166%codex/multi-canvas-example into ib/multi-canvas-rfc. No base build found for ib/multi-canvas-rfc.

@ibgreen-openai
ibgreen-openai force-pushed the codex/multi-canvas-example branch from c1e6919 to 2ebef5a Compare August 1, 2026 14:24
@ibgreen ibgreen added this to the v9.4 milestone Aug 2, 2026
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.

3 participants