Change working point icon

dev
Platon Yasev 3 years ago
parent 08f12d9ec7
commit ee191af178

@ -61,13 +61,23 @@ export const workingPointSymbolLayer = {
type: "symbol",
layout: {
"icon-image": "logo",
"icon-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 9, 0.3, 13, 0.5],
"icon-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 9, 0.1, 13, 0.7],
},
paint: {
"icon-color": "#E63941",
},
};
export const workingPointBackgroundLayer = { ...getPointConfig("#FFF", 10) };
const workingBgColor = "#ffffff";
const workingBgSize = 16;
export const workingPointBackgroundLayer = {
...getPointConfig(workingBgColor, workingBgSize),
paint: {
...getPointConfig(workingBgColor, workingBgSize).paint,
"circle-stroke-width": 0.4,
"circle-stroke-color": "#252525",
},
};
export const cancelledPointLayer = getPointConfig(CANCELLED_COLOR);
export const pvzPointLayer = getPointConfig(PVZ_COLOR);
export const otherPostamatesLayer = getPointConfig(OTHER_POSTAMATES_COLOR);

@ -6,7 +6,6 @@ import {
OTHER_POSTAMATES_COLOR,
PENDING_COLOR,
PVZ_COLOR,
WORKING_COLOR,
} from "./Layers/layers-config";
import { Logo } from "../icons/Logo.jsx";
@ -60,10 +59,7 @@ export function Legend() {
colors={pendingColors}
name="Локации к рассмотрению"
/>
<LegendPointItem
name="Работающие постаматы"
color={WORKING_COLOR}
/>
<LegendPointItem name="Работающие постаматы" />
<LegendPointItem
name="Отмененные локации"
color={CANCELLED_COLOR}

@ -12,8 +12,6 @@ export const useColumns = () => {
tableState: { fullScreen },
} = useTable();
console.log(fullScreen);
return useMemo(() => {
return [
{

Loading…
Cancel
Save