I have a simple problem I can't seem to solve. I query a feature and zoom to it:
feaFarms.queryFeatures(query).then(function(results){
const features = results.features;
//view.goTo(features[0].geometry, 1000);
var geometry = features[0].geometry;
view.goTo(features[0].geometry);
After I "goTo" the queried feature geometry I want to zoom out a percentage so I can show some of the area surrounding the feature of interest. I've tried getting and setting the scale but that doesn't work real well.