Fix image layer resolution for controlled overlays - #38
Conversation
📝 WalkthroughWalkthroughRefactors element lookup with exported resolveLayerElement, documents a points/core vs layers contract and MDV Arrow/Parquet guidance, formalizes Viv image adapter identity/prop-flow and audit checklist, and adds layerOrder-driven VivSpatialViewer composition plus tests. ChangesLayer Element Resolution & Adapter Contracts
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
LayerConfig.elementKeyinstead of assuming the generatedtype:keylayer id always matches the loaded element.Testing
pnpm --filter @spatialdata/vis test -- spatialCanvasUtils.spec.ts vivSpatialViewer.spec.tspnpm --filter @spatialdata/vis buildpnpm --filter docs buildgit diff --checkSummary by CodeRabbit
New Features
Documentation