Skip to content

Commit 4d5dfa8

Browse files
committed
removed use of buffer in viewpoint extent selection
1 parent 3baef9b commit 4d5dfa8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/com/esri/samples/search/find_place/FindPlaceSample.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)