Skip to content

Commit

Permalink
Merge pull request #941 from Eastern-Research-Group/bugfix/674_wsr-to…
Browse files Browse the repository at this point in the history
…ggle-flicker

Bugfix/674 wsr toggle flicker
  • Loading branch information
maxdiebold-erg authored Jan 31, 2024
2 parents 3fb9f03 + df1cf40 commit 4a4a7e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion app/client/src/contexts/locationSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class LocationSearchProvider extends Component<Props, State> {

// reset the zoom and home widget to the initial extent
if (useDefaultZoom && mapView) {
mapView.extent = initialExtent();
mapView.goTo(initialExtent());

if (homeWidget) {
homeWidget.viewpoint = initialViewpoint();
Expand Down
11 changes: 0 additions & 11 deletions app/client/src/utils/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,9 +1009,6 @@ function useSharedLayers({
});

setLayer('wsioHealthIndexLayer', wsioHealthIndexLayer);
setResetHandler('wsioHealthIndexLayer', () => {
wsioHealthIndexLayer.visible = false;
});

// Toggles the shading of the watershed graphic based on
// whether or not the wsio layer is on or off
Expand Down Expand Up @@ -1063,9 +1060,6 @@ function useSharedLayers({
});

setLayer('protectedAreasLayer', protectedAreasLayer);
setResetHandler('protectedAreasLayer', () => {
protectedAreasLayer.visible = false;
});

return protectedAreasLayer;
}
Expand Down Expand Up @@ -1109,11 +1103,6 @@ function useSharedLayers({
},
});
setLayer('wildScenicRiversLayer', wildScenicRiversLayer);
setResetHandler('wildScenicRiversLayer', () => {
setTimeout(() => {
wildScenicRiversLayer.visible = false;
}, 100);
});

return wildScenicRiversLayer;
}
Expand Down

0 comments on commit 4a4a7e2

Please sign in to comment.