File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/main/java/com/esri/samples/search/find_place Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -420,9 +420,7 @@ public void run() {
420420 // add the markers to the graphics overlay
421421 graphicsOverlay .getGraphics ().addAll (markers );
422422
423- // listener to enable the redo-search button the first time the user
424- // moves
425- // away from the initial search area
423+ // listener to enable the redo-search button the first time the user moves away from the initial search area
426424 ViewpointChangedListener changedListener = new ViewpointChangedListener () {
427425
428426 @ Override
@@ -434,8 +432,7 @@ public void viewpointChanged(ViewpointChangedEvent arg0) {
434432 };
435433
436434 // zoom to see all results and disable redo-search button
437- ListenableFuture <Boolean > changeViewpoint = mapView .setViewpointGeometryAsync (
438- GeometryEngine .buffer (graphicsOverlay .getExtent (), 200 ));
435+ ListenableFuture <Boolean > changeViewpoint = mapView .setViewpointGeometryAsync (graphicsOverlay .getExtent ());
439436 changeViewpoint .addDoneListener (() -> {
440437 redoButton .setDisable (true );
441438 mapView .addViewpointChangedListener (changedListener );
You can’t perform that action at this time.
0 commit comments