fix(map): reduce bathymetry fill complexity at low zoom
This commit is contained in:
부모
84d602d25b
커밋
dc0729fc5f
@ -218,6 +218,10 @@ function injectOceanBathymetryLayers(style: StyleSpecification, maptilerKey: str
|
|||||||
type: "fill",
|
type: "fill",
|
||||||
source: oceanSourceId,
|
source: oceanSourceId,
|
||||||
"source-layer": "contour",
|
"source-layer": "contour",
|
||||||
|
// Very low zoom tiles can contain extremely complex polygons (coastline/detail),
|
||||||
|
// which may exceed MapLibre's per-segment 16-bit vertex limit and render incorrectly.
|
||||||
|
// We keep the fill starting at a more reasonable zoom.
|
||||||
|
minzoom: 4,
|
||||||
paint: {
|
paint: {
|
||||||
// Dark-mode friendly palette (shallow = slightly brighter; deep = near-black).
|
// Dark-mode friendly palette (shallow = slightly brighter; deep = near-black).
|
||||||
"fill-color": bathyFillColor,
|
"fill-color": bathyFillColor,
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user