Skip to content

Commit 571a481

Browse files
committed
Remove RegionWidget
1 parent 10af11e commit 571a481

File tree

2 files changed

+0
-178
lines changed

2 files changed

+0
-178
lines changed

src/App.tsx

-23
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ import { tsx } from "@arcgis/core/widgets/support/widget";
88
import Widget from "@arcgis/core/widgets/Widget";
99
import { map, view } from "./globals";
1010
import { PlaceCountry } from "./PlaceCountry";
11-
import { RegionWidget } from "./RegionWidget";
1211

1312
const regionSelector = new PlaceCountry();
1413

1514
@subclass("TrueSize.App")
1615
export default class App extends Widget {
17-
@property()
18-
regions: RegionWidget[] = [];
19-
2016
@property({ readOnly: true })
2117
editor = regionSelector.regionEditor;
2218

@@ -47,25 +43,6 @@ export default class App extends Widget {
4743
l.outFields = ["COUNTRY"];
4844
}
4945
});
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-
// });
6946
});
7047
}
7148

src/RegionWidget.tsx

-155
This file was deleted.

0 commit comments

Comments
 (0)