Solved! Go to Solution.
map.on("click", function(evt) { selectQuery.geometry = evt.mapPoint; petroFieldsFL.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function(features) { if (features.length > 0) { //store the current feature updateFeature = features[0]; // Dont know how to Highlight the feature // How do I grab its Geometry and use it for a Buffer Select } else { } }); });
registry.byId("RegionSelection").on("click", function() { var highlightSymbol = new SimpleFillSymbol( SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 1), new Color([125, 125, 125, 0.35])); petroFieldsFL2.on("click", function (evt) { map.graphics.clear(); highlightGraphic = new Graphic(evt.graphic.geometry, highlightSymbol); map.graphics.add(highlightGraphic); var query = new Query(); query.geometry = highlightGraphic.geometry.getExtent(); }) });