Skip to content

Commit 4b31843

Browse files
committed
More lint fixes
1 parent ff63d58 commit 4b31843

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web-vite/src/app/map/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export function Map(props: MapProps) {
6868
maxZoom: 18,
6969
minZoom: 0,
7070
});
71-
let scale = new MapLibreGL.ScaleControl({
71+
const scale = new MapLibreGL.ScaleControl({
7272
maxWidth: 160,
73-
unit: 'metric'
73+
unit: "metric",
7474
});
7575
map.addControl(scale);
7676

@@ -162,10 +162,10 @@ export function Map(props: MapProps) {
162162
},
163163
});
164164

165-
function onClick(e) {
165+
function onClick(e: any) {
166166
const props = e.features[0].properties;
167167
let tags = "";
168-
let tagObject = JSON.parse(props.tags);
168+
const tagObject = JSON.parse(props.tags);
169169
for (const [key, value] of Object.entries(tagObject)) {
170170
tags = tags + "<dt>" + key + "=" + value + "</dt>";
171171
}
@@ -216,5 +216,5 @@ export function Map(props: MapProps) {
216216
}
217217
}, [appState?.map, appState?.currentTimestampGeojson]);
218218

219-
return <div id="map"></div>;
219+
return <div id="map" />;
220220
}

0 commit comments

Comments
 (0)