Skip to content

Commit 6b4b1f9

Browse files
committed
updated to allow for more than one feature identified
1 parent 76b35c5 commit 6b4b1f9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/main/java/com/esri/samples/featurelayers/feature_layer_selection/FeatureLayerSelectionSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void start(Stage stage) throws Exception {
9696

9797
// identify the clicked features
9898
final ListenableFuture<IdentifyLayerResult> results = mapView.identifyLayerAsync(featureLayer, point, 10,
99-
false);
99+
false, 10);
100100
results.addDoneListener(() -> {
101101

102102
try {

src/main/java/com/esri/samples/featurelayers/feature_layer_selection/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515
<ol>
1616
<li>Create a <code>ServiceFeatureTable</code> from a URL.</li>
1717
<li>Create a feature layer from the service feature table.</li>
18-
<li>Identify <code>MapView</code> on the location the user has clicked.
19-
<ul><li>call <code>MapView.identifyLayerAsync(FeatureLayer, Point2D, tolerance, max results)</code></li>
20-
<li>feature layer, from above</li>
21-
<li>Point2D, location where the user clicked</li>
22-
<li>tolerance, area around Point2D to locate features</li>
23-
<li>max results, maximum number of features to return</li></ul></li>
24-
<li>Select all features that were identified, <code>FeatureLayer.selectFeatures()</code>.</li>
18+
<li>Identify <code>MapView</code> on the location the user has clicked <code>MapView.identifyLayerAsync
19+
(featureLayer, clickLocation, tolerance, returnPopupsOnly, maxResults)
20+
</code></li>
21+
<li>Select all features that were identified with <code>FeatureLayer.selectFeatures(features)</code>.</li>
2522
</ol>
2623

2724
<h2>Features</h2>

0 commit comments

Comments
 (0)