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

825
3
Jump to solution
07-18-2017 12:03 PM
DavidColey
Frequent Contributor

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

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
ThomasSolow
Occasional Contributor III

This bug came up on here a few weeks ago.  I believe it has been confirmed and fixed, but I don't know when the fix will be released.

In the meantime I suggest sticking with 4.3.

View solution in original post

3 Replies
ThomasSolow
Occasional Contributor III

This bug came up on here a few weeks ago.  I believe it has been confirmed and fixed, but I don't know when the fix will be released.

In the meantime I suggest sticking with 4.3.

DavidColey
Frequent Contributor

Thanks for the feedback Thomas, I certainly appreciate it.  I know we are all busy, but it would be super helpful if you guys could post bugs like this to the community when/if they come up.  In the meantime, I could go back to 4.3 but the paging ability at 4.4 for the popup (at least for me) precludes that. 

0 Kudos
ThomasSolow
Occasional Contributor III

I agree, it would be a good idea to have a "known issues and ETA on fix" section somewhere.