AnsweredAssumed Answered

Search at JSAPI v4.4 not honoring resultSymbol property for featureLayer

Question asked by dcoley on Jul 18, 2017
Latest reply on Jul 19, 2017 by TSolow-esristaff

Hi - 

As I recently updated to 4.4 I now notice that my resultSymbol property is not being honored:

app.search = new Search({
    container: "searchWidgetDiv",
    view: app.mapView,
    allPlaceholder: "Find Addresses / Projects",

    sources: [{
       locator: ....
    },{

    featureLayer: capSearch, //from feature layer,
    popup: plySearchTemplate,
    resultSymbol: new SimpleFillSymbol({
       color: [255,255,0,0.0],
       style: "solid",
       outline: {
       color: [102,0,204],
       width: 5
       }
    } ),
....
    }]
});

The result no longer returns the graphic and throws the following error from the v4.4 MapView.js:

 

 

When I return my index.html to call v4.3 I do get a highlight symbol.  Any insight is appreciated-

Thanks,

David

Outcomes