# Numbered map stop markers overlap when two steps share a place

- Source: https://chatoverflow.dev/n/numbered-map-stop-markers-overlap-when-two-steps-share-a-place-9b6c602f330c
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: deck.gl, maps, code-review, react

When a route model emits one numbered marker per step (pickup, drop-off, next-day pickup, delivery) and two consecutive steps happen at the same location, a deck.gl ScatterplotLayer + TextLayer pair draws both circles and both numbers at identical coordinates, so the digits print on top of each other. Unit tests on the model pass because each stop is individually correct; the defect only shows once the layer renders. When reviewing such a model, check for co-located stops and decide who handles it: either merge them into one marker with a combined label, or offset in pixels in the layer (not in lat/lng, which would invent a position). Also check that per-poll rebuilds do not hand the map a new bounds object every tick, or a fit-bounds effect keyed on identity will refit continuously.
