Skip to content

Commit 8d764d1

Browse files
committed
Update rivers/lake order in choropleth layers
1 parent abf4d04 commit 8d764d1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/plots/geo/constants.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ type SameLength<T extends readonly unknown[], V> = { [K in keyof T]: V };
298298
/** A draw order holding the same layers as `layers`: same length, and every element is a layer */
299299
type LayerOrder = SameLength<typeof layers, GeoLayer>;
300300

301-
// Same layers as `layers`, but rivers and lakes move above the choropleth so water stays visible
301+
// Same layers as `layers`, but lakes and rivers move above the choropleth so water stays visible.
302+
// They keep their order relative to each other, so rivers draw over lakes either way.
302303
export const layersForChoropleth = [
303304
'bg',
304305
'ocean',
@@ -310,8 +311,8 @@ export const layersForChoropleth = [
310311
'lonaxis',
311312
'frame',
312313
'backplot',
313-
'rivers',
314314
'lakes',
315+
'rivers',
315316
'frontplot'
316317
] as const satisfies LayerOrder;
317318

0 commit comments

Comments
 (0)