From e69a3dc495bcce9d7a8e340a34caa9e2a0b02286 Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Sun, 8 Nov 2026 00:17:20 -0800 Subject: [PATCH] Draw marker tiles with the markers Marker tiles are mounted as a raster and were drawn in the raster band, under every polygon, circle and polyline. They are drawn just under the native marker layer now. The rest already followed the shared order (DeckGLLayerOrder). --- src/raster/DeckGLRasterLayer.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/raster/DeckGLRasterLayer.ts b/src/raster/DeckGLRasterLayer.ts index e32c3fd..f57a263 100644 --- a/src/raster/DeckGLRasterLayer.ts +++ b/src/raster/DeckGLRasterLayer.ts @@ -135,7 +135,12 @@ export class DeckGLRasterLayerRenderer { }); }, }), - DeckGLLayerOrder.rasterLayer + Math.max(-9, Math.min(9, state.zIndex)), + // Marker tiles are mounted as a raster but belong with the markers: over the shapes, + // just under the native marker layer. They used to sit in the raster band, under + // every polygon, circle and polyline. + state.id === 'mc-marker-tiles' + ? DeckGLLayerOrder.marker - 1 + : DeckGLLayerOrder.rasterLayer + Math.max(-9, Math.min(9, state.zIndex)), ); return handle; }