Skip to content

Commit 5cece81

Browse files
committed
Handle POI layer reset
1 parent ea73bc5 commit 5cece81

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/map/main/PoiMap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const PoiMap = () => {
2828
? gcoord.transform(parsed, gcoord.WGS84, gcoord.GCJ02)
2929
: parsed,
3030
);
31+
} else {
32+
setData(null);
3133
}
3234
},
3335
[poiLayer],

0 commit comments

Comments
 (0)