From df1cf40f0af58acc49b465c2e834c0e55f8ba289 Mon Sep 17 00:00:00 2001 From: Caleb Schwind <46329268+cschwinderg@users.noreply.github.com> Date: Wed, 31 Jan 2024 09:01:39 -0500 Subject: [PATCH] HMW-674 Fixed issue of map not zooming back out to continental US. --- app/client/src/contexts/locationSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/contexts/locationSearch.js b/app/client/src/contexts/locationSearch.js index f761558bf..1d85ac00e 100644 --- a/app/client/src/contexts/locationSearch.js +++ b/app/client/src/contexts/locationSearch.js @@ -373,7 +373,7 @@ export class LocationSearchProvider extends Component { // reset the zoom and home widget to the initial extent if (useDefaultZoom && mapView) { - mapView.extent = initialExtent(); + mapView.goTo(initialExtent()); if (homeWidget) { homeWidget.viewpoint = initialViewpoint();