Pitfalls - hiro-nyon/cesium-heatbox GitHub Wiki
Pitfalls(よくある落とし穴) / Pitfalls
日本語 | English
日本語
- ボクセルが多すぎる:
voxelSizeが小さすぎる ormaxRenderVoxelsが高すぎ。→ ボクセルサイズを上げる/自動化、上限を下げる。 - 線が太くならない: WebGL の線幅制限。→
outlineRenderMode: 'emulation-only'を使うか、標準/インセットにemulationScope: 'topn'|'all'を重ねる。 - インセットが見えない:
opacity: 1.0で塗りが覆う。→ 0.6〜0.9 に下げる orwireframeOnly: true。 - 重なりで見づらい:
outlineInset/voxelGap/outlineOpacityを調整。密集域はadaptiveOutlinesも有効。 - 英語/日本語の混在説明: JSDoc 分離が未整備な箇所。→ Wiki では言語別セクションを参照。
- 画面全体が白っぽい: coverage を上げすぎ。→
minCoverageRatioを下げる or density に戻す。 - UMD/ESM の混同: CDN は
CesiumHeatbox、ESM はimport Heatbox from 'cesium-heatbox'。 - Cesium バージョン不整合: peer
^1.120.0を満たすこと。
English
- Too many voxels:
voxelSizetoo small ormaxRenderVoxelstoo high → increase voxel size / lower the cap. - Thick lines don’t render: WebGL line width limit → use
outlineRenderMode: 'emulation-only', or overlay partial emulation withemulationScope: 'topn'|'all'. - Inset outline invisible: filled box hides it → reduce
opacityor usewireframeOnly. - Visual clutter from overlap: tune
outlineInset/voxelGap/outlineOpacity; consideradaptiveOutlines. - Mixed language docs: prefer language-specific sections in Wiki.
- Washed-out look: excessive coverage → lower
minCoverageRatioor revert to density. - UMD/ESM mismatch: use
CesiumHeatboxon CDN,importfor ESM. - Cesium version mismatch: ensure peer
^1.120.0.