File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ export function Map(props: MapProps) {
68
68
maxZoom : 18 ,
69
69
minZoom : 0 ,
70
70
} ) ;
71
- let scale = new MapLibreGL . ScaleControl ( {
71
+ const scale = new MapLibreGL . ScaleControl ( {
72
72
maxWidth : 160 ,
73
- unit : ' metric'
73
+ unit : " metric" ,
74
74
} ) ;
75
75
map . addControl ( scale ) ;
76
76
@@ -162,10 +162,10 @@ export function Map(props: MapProps) {
162
162
} ,
163
163
} ) ;
164
164
165
- function onClick ( e ) {
165
+ function onClick ( e : any ) {
166
166
const props = e . features [ 0 ] . properties ;
167
167
let tags = "" ;
168
- let tagObject = JSON . parse ( props . tags ) ;
168
+ const tagObject = JSON . parse ( props . tags ) ;
169
169
for ( const [ key , value ] of Object . entries ( tagObject ) ) {
170
170
tags = tags + "<dt>" + key + "=" + value + "</dt>" ;
171
171
}
@@ -216,5 +216,5 @@ export function Map(props: MapProps) {
216
216
}
217
217
} , [ appState ?. map , appState ?. currentTimestampGeojson ] ) ;
218
218
219
- return < div id = "map" > </ div > ;
219
+ return < div id = "map" / >;
220
220
}
You can’t perform that action at this time.
0 commit comments