fix: reduce globe symbol paint variability to avoid bucket mismatch
This commit is contained in:
부모
5b7d1c4331
커밋
86d36d25e3
@ -2559,40 +2559,10 @@ export function Map3D({
|
|||||||
"icon-pitch-alignment": "map",
|
"icon-pitch-alignment": "map",
|
||||||
},
|
},
|
||||||
paint: {
|
paint: {
|
||||||
"icon-color": [
|
"icon-color": "#ffffff",
|
||||||
"case",
|
"icon-opacity": 1,
|
||||||
["==", ["get", "selected"], 1],
|
"icon-halo-color": "rgba(15,23,42,0.22)",
|
||||||
"rgba(14,234,255,1)",
|
"icon-halo-width": 0,
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
"rgba(245,158,11,1)",
|
|
||||||
["==", ["get", "permitted"], 1],
|
|
||||||
"rgba(125,211,252,1)",
|
|
||||||
"rgba(59,130,246,1)",
|
|
||||||
] as never,
|
|
||||||
"icon-opacity": [
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
1.0,
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
1,
|
|
||||||
0.9,
|
|
||||||
] as never,
|
|
||||||
"icon-halo-color": [
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
"rgba(14,234,255,0.68)",
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
"rgba(245,158,11,0.72)",
|
|
||||||
"rgba(15,23,42,0.25)",
|
|
||||||
] as never,
|
|
||||||
"icon-halo-width": [
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
2.2,
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
1.5,
|
|
||||||
0,
|
|
||||||
] as never,
|
|
||||||
},
|
},
|
||||||
} as unknown as LayerSpecification,
|
} as unknown as LayerSpecification,
|
||||||
before,
|
before,
|
||||||
@ -2603,58 +2573,6 @@ export function Map3D({
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
map.setLayoutProperty(symbolId, "visibility", visibility);
|
map.setLayoutProperty(symbolId, "visibility", visibility);
|
||||||
map.setPaintProperty(
|
|
||||||
symbolId,
|
|
||||||
"icon-color",
|
|
||||||
[
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
"rgba(14,234,255,1)",
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
"rgba(245,158,11,1)",
|
|
||||||
["==", ["get", "permitted"], 1],
|
|
||||||
"rgba(125,211,252,1)",
|
|
||||||
["coalesce", ["get", "shipColor"], "#64748b"],
|
|
||||||
] as never,
|
|
||||||
);
|
|
||||||
map.setPaintProperty(
|
|
||||||
symbolId,
|
|
||||||
"icon-opacity",
|
|
||||||
[
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
1.0,
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
1,
|
|
||||||
0.9,
|
|
||||||
] as never,
|
|
||||||
);
|
|
||||||
map.setPaintProperty(
|
|
||||||
symbolId,
|
|
||||||
"icon-halo-color",
|
|
||||||
[
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
"rgba(14,234,255,0.68)",
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
"rgba(245,158,11,0.72)",
|
|
||||||
["==", ["get", "permitted"], 1],
|
|
||||||
"rgba(125,211,252,0.58)",
|
|
||||||
"rgba(15,23,42,0.25)",
|
|
||||||
] as never,
|
|
||||||
);
|
|
||||||
map.setPaintProperty(
|
|
||||||
symbolId,
|
|
||||||
"icon-halo-width",
|
|
||||||
[
|
|
||||||
"case",
|
|
||||||
["==", ["get", "selected"], 1],
|
|
||||||
2.2,
|
|
||||||
["==", ["get", "highlighted"], 1],
|
|
||||||
1.5,
|
|
||||||
0,
|
|
||||||
] as never,
|
|
||||||
);
|
|
||||||
} catch {
|
} catch {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user