refactor: path's label viewed also line

This commit is contained in:
taDuc
2026-05-12 20:48:13 +07:00
parent 51f432f0fe
commit 72d7073c40
9 changed files with 161 additions and 153 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ import { getCastleLayers } from "./castle";
import { getRuinLayers } from "./ruin";
import { getPortLayers } from "./port";
import { getBridgeLayers } from "./bridge";
import { getLineLabelLayers } from "./lineLabels";
import { getPolygonLabelLayers } from "./polygonLabels";
import { LayerSpecification } from "maplibre-gl";
@@ -65,8 +66,9 @@ export function getAllGeotypeLayers(sourceId: string, pathArrowSourceId?: string
];
}
export function getAllGeotypeLabelLayers(polygonLabelSourceId: string): LayerSpecification[] {
export function getAllGeotypeLabelLayers(polygonLabelSourceId: string, lineSourceId: string): LayerSpecification[] {
return [
...getPolygonLabelLayers(polygonLabelSourceId),
...getLineLabelLayers(lineSourceId),
];
}