Skip to content

Commit d8fc31a

Browse files
committed
formatting
1 parent 040ae9d commit d8fc31a

31 files changed

+101
-97
lines changed

src/NavBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default class NavBar {
175175
return NavBar.createUrl(
176176
window.location.origin + window.location.pathname,
177177
this.queryStore.state,
178-
this.mapStore.state
178+
this.mapStore.state,
179179
).toString()
180180
}
181181
}

src/api/Api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ export class ApiImpl implements Api {
7979
} else {
8080
if (result.message) throw new Error(result.message)
8181
throw new Error(
82-
'There has been an error. Server responded with ' + response.statusText + ' (' + response.status + ')'
82+
'There has been an error. Server responded with ' + response.statusText + ' (' + response.status + ')',
8383
)
8484
}
8585
}
8686

8787
async geocode(
8888
query: string,
8989
provider: string,
90-
additionalOptions?: Record<string, string>
90+
additionalOptions?: Record<string, string>,
9191
): Promise<GeocodingResult> {
9292
if (!this.supportsGeocoding())
9393
return {

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ document.body.appendChild(rootDiv)
105105
const root = createRoot(rootDiv)
106106
root.render(
107107
// <StrictMode>
108-
<App />
108+
<App />,
109109
// </StrictMode>
110110
)

src/layers/MapPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Map, Overlay } from 'ol'
2-
import {JSX, useEffect, useRef, useState} from 'react'
2+
import { JSX, useEffect, useRef, useState } from 'react'
33
import { fromLonLat } from 'ol/proj'
44
import { Coordinate } from '@/utils'
55

src/layers/PathDetailPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function PathDetailPopup({ map, pathDetails }: PathDetailPopupPro
2626
{metersToText(
2727
Math.round(pathDetails.pathDetailsPoint.elevation),
2828
settings.showDistanceInMiles,
29-
true
29+
true,
3030
)}
3131
<br />
3232
{pathDetails.pathDetailsPoint!.description}

src/layers/UseAreasLayer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function addAreasLayer(map: Map, modifyOrNewAreas: boolean, customModelStr: Muta
6565
const newFeature = convertFeature(feature as Feature<Geometry>)
6666
newFeature.id = feature.getId()
6767
customModel.areas.features = customModel.areas.features.map((f: any) =>
68-
f.id == feature.getId() ? newFeature : f
68+
f.id == feature.getId() ? newFeature : f,
6969
)
7070
})
7171

@@ -85,7 +85,7 @@ function addAreasLayer(map: Map, modifyOrNewAreas: boolean, customModelStr: Muta
8585
let maxId = 0
8686
if ((customModel.areas as any)?.features) {
8787
const numArr = customModel.areas.features.map((obj: any) =>
88-
obj['id'] ? parseInt(obj['id'].match(/\d+/)[0]) : 0
88+
obj['id'] ? parseInt(obj['id'].match(/\d+/)[0]) : 0,
8989
)
9090
if (numArr.length > 0) maxId = Math.max(...numArr)
9191
} else {

src/layers/UsePOIsLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function addPOISelection(map: Map) {
119119
src: 'data:image/svg+xml;utf8,' + svgStrings[props.icon],
120120
displacement: [0, 18],
121121
}),
122-
})
122+
}),
123123
)
124124
Dispatcher.dispatch(new SelectPOI(props.poi))
125125
} else Dispatcher.dispatch(new SelectPOI(null))

src/layers/UsePathDetailsLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function addPathSegmentsLayer(map: Map, pathDetails: PathDetailsStoreState) {
4646
const highlightedPathSegmentsLayer = new VectorLayer({
4747
source: new VectorSource({
4848
features: new GeoJSON().readFeatures(
49-
createHighlightedPathSegments(pathDetails.pathDetailsHighlightedSegments)
49+
createHighlightedPathSegments(pathDetails.pathDetailsHighlightedSegments),
5050
),
5151
}),
5252
style: () => style,

src/layers/UsePathsLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function usePathsLayer(map: Map, paths: Path[], selectedPath: Pat
2525
removeCurrentPathLayers(map)
2626
addUnselectedPathsLayer(
2727
map,
28-
paths.filter(p => p != selectedPath)
28+
paths.filter(p => p != selectedPath),
2929
)
3030
addSelectedPathsLayer(map, selectedPath)
3131
addAccessNetworkLayer(map, selectedPath, queryPoints)

0 commit comments

Comments
 (0)