From 4269b2b13514a94b92308f44a96b5b16bb1929ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=9D=80=EC=8B=9D?= Date: Sun, 13 Dec 2020 22:40:27 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20[#161]=20=EB=8F=84=EB=A1=9C=20=EC=83=89?= =?UTF-8?q?=EC=B9=A0=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 4번째 에러인 도로 전체 아이콘 없앤 후 새로고침하면 도로가 칠해지는 현상 해결 - 색상 값이 잘못들어가 있었다. 아마 문제 자체는 리팩토링하면서 해결되었을 것으로 추정 --- src/store/index.ts | 1 - src/utils/map-styling/road.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 07e6f63..cdc051c 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,5 +1,4 @@ import { combineReducers, createStore } from 'redux'; - import map from './map/reducer'; import { poiReducer as poi, diff --git a/src/utils/map-styling/road.ts b/src/utils/map-styling/road.ts index baacdd7..b9f5767 100644 --- a/src/utils/map-styling/road.ts +++ b/src/utils/map-styling/road.ts @@ -70,7 +70,7 @@ function roadStyling({ map, layerNames: outsideLayerNames, type: ColorType.fill, - color: '#ffffff', + color: style.color, [key]: style[key as StyleKeyType], }); }