File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ export default function App() {
215
215
</ div >
216
216
< div className = "flex flex-col gap-4 rounded border border-zinc-200 p-3 dark:border-zinc-700" >
217
217
< ErrorBoundary FallbackComponent = { ErrorFallback } >
218
+ { /* @ts -expect-error Geocode types are messed up */ }
218
219
< Geocode { ...geocodeOptions } />
219
220
< details className = "group" >
220
221
< summary className = "flex cursor-default list-none items-center gap-1 rounded outline-0 outline-offset-2 transition-all focus:outline-2 focus:outline-primary-900 focus:dark:outline-secondary-600 [&::-webkit-details-marker]:hidden" >
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const MapContainer = ({ onClick }: { onClick?: __esri.ViewImmediateClickE
35
35
mapView . current = new MapView ( {
36
36
container : mapNode . current ,
37
37
map : mapComponent . current ,
38
- extent : new Polygon ( randomExtent . geometry ) . extent ,
38
+ extent : new Polygon ( randomExtent . geometry ! ) . extent ! ,
39
39
ui : {
40
40
components : [ 'zoom' ] ,
41
41
} ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const extents: __esri.GraphicProperties[] = [
14
14
spatialReference : {
15
15
wkid : 3857 ,
16
16
} ,
17
- } as __esri . PolygonProperties ,
17
+ } ,
18
18
attributes : {
19
19
name : 'Farmington' ,
20
20
} ,
@@ -34,7 +34,7 @@ const extents: __esri.GraphicProperties[] = [
34
34
spatialReference : {
35
35
wkid : 3857 ,
36
36
} ,
37
- } as __esri . PolygonProperties ,
37
+ } ,
38
38
attributes : {
39
39
name : 'Ogden' ,
40
40
} ,
@@ -54,7 +54,7 @@ const extents: __esri.GraphicProperties[] = [
54
54
spatialReference : {
55
55
wkid : 3857 ,
56
56
} ,
57
- } as __esri . PolygonProperties ,
57
+ } ,
58
58
attributes : {
59
59
name : 'Salt Lake City' ,
60
60
} ,
@@ -74,7 +74,7 @@ const extents: __esri.GraphicProperties[] = [
74
74
spatialReference : {
75
75
wkid : 3857 ,
76
76
} ,
77
- } as __esri . PolygonProperties ,
77
+ } ,
78
78
attributes : {
79
79
name : 'Provo' ,
80
80
} ,
You can’t perform that action at this time.
0 commit comments