Hey Chris,Thanks for posting another video, that makes it crystal clear to see what you're trying to do.I'm going to suggest a slightly new idea...since you're adding a buffer to your map, how about setting your map extent to include the buffer and the city boundary?To do this, you would take the extent of your buffer geometry, union it with your map extent and then set your map extent to the new extent. I'm looking at the code you uploaded yesterday and you would do this inside your "showBuffer" function. Here's how it would look:function showBuffer(geometries) {
var symbol = new esri.symbol.SimpleFillSymbol(
esri.symbol.SimpleFillSymbol.STYLE_SOLID,
new esri.symbol.SimpleLineSymbol(
esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([0, 0, 255, 0.65]), 2
),
new dojo.Color([0, 0, 255, 0.35])
);
dojo.forEach(geometries, function (geometry) {
var graphic = new esri.Graphic(geometry, symbol);
map.graphics.add(graphic);
});
// looks like you only buffer one point
// so take the first geometry in the geometries array
// and get its extent
var bufferExtent = geometries[0].getExtent();
// create a new extent that is the union of the buffer's
// extent and the map's current extent
var newExtent = bufferExtent.union(map.getExtent());
// set the map's extent
map.setExtent(newExtent);
queryParams.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERIORINTERSECTION;
queryParams.returnGeometry = true;
queryParams.geometry = geometries[0];
queryTask.execute(queryParams);
}