@@ -8,15 +8,11 @@ import { tsx } from "@arcgis/core/widgets/support/widget";
8
8
import Widget from "@arcgis/core/widgets/Widget" ;
9
9
import { map , view } from "./globals" ;
10
10
import { PlaceCountry } from "./PlaceCountry" ;
11
- import { RegionWidget } from "./RegionWidget" ;
12
11
13
12
const regionSelector = new PlaceCountry ( ) ;
14
13
15
14
@subclass ( "TrueSize.App" )
16
15
export default class App extends Widget {
17
- @property ( )
18
- regions : RegionWidget [ ] = [ ] ;
19
-
20
16
@property ( { readOnly : true } )
21
17
editor = regionSelector . regionEditor ;
22
18
@@ -47,25 +43,6 @@ export default class App extends Widget {
47
43
l . outFields = [ "COUNTRY" ] ;
48
44
}
49
45
} ) ;
50
-
51
- // const fl = map.allLayers.find(
52
- // (l: any) =>
53
- // l.portalItem && l.portalItem.id === "f7c4a1c48f074de8905bd672be11e168"
54
- // ) as FeatureLayer;
55
- // const query = fl.createQuery();
56
- // // query.orderByFields = ["Shape__Area DESC"];
57
- // query.where = "FID in (59, 20, 249, 201, 186, 267)";
58
- // query.returnGeometry = true;
59
- // query.outFields = ["*"];
60
- // const results = await fl.queryFeatures(query);
61
- // this.regions = results.features.map((graphic) => {
62
- // const widget = new RegionWidget();
63
- // widget.region = new SelectedRegion({
64
- // graphic,
65
- // color: this.white,
66
- // });
67
- // return widget;
68
- // });
69
46
} ) ;
70
47
}
71
48
0 commit comments