I want to mange the display of my graphic when returning from search [event: "search-complete"], but I can see immediately when I put a break inside returning from this event the MapView has put focus on the geometry, and put a black circle. Both actions cannot be interrupted. I've tried just about every permutation of options to prevent default behavior, and nothing in my console or other logs indicate I've done something wrong. Adding insult to injury, the mapped point is not part of any obvious layer, so I cannot control removing it even after everything settles in.
relevant block of code:
var US_Only = [{
autoNavigate: false,
locator: new Locator({
url: "//" + '<%= Configuration.getConfigurationValue(Constants.ESRI_GEOCODE_SVC_EP) %>'
}),
maxResults: 1,
singleLineFieldName: "SingleLine",
countryCode: "US",
outFields: ["addr_type", "score", "match_addr"]
}];
searchWidget = new Search({
autoSelect: false,
sources: US_Only,
popupEnabled: false,
resultGraphicEnabled: false
});
searchWidget.on("search-complete", function(retobj) {
// retobj has everything I need -- and will control rendering/plotting -- but at this point the result is rendered, which I do NOT want
});