Select to view content in your preferred language

Modifying search component result marker

144
1
yesterday
LinusJansson
New Contributor

Hello!

We have migrated the JS sdk to use the map components due to 4.22 being sunset. However, configuring the components to our own needs is a bit more tricky.

Correct me if I am wrong. We would like to change the color/style of the ResultGraphic of the arcgis-search component (the resulting dot when searching for a location). Something no longer present in the new components API. Compared to the old one.

What is the recommended way to modify and configure the components?

0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor

You can set this up via the SearchSource as the resultSymbol.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource....

If it worked via the resultGraphic, it was in error as that is supposed to be readonly property in both the component and the widget.

0 Kudos