I have a FeatureLayer containing parcels that is displayed in a MapView. This FeatureLayer pulls its data from a specific URL. I have a LayerSearchSource that uses the same URL. When I enter a valid query for a parcel (ten digits), the red pin icon (PictureMarkerSymbol) that I assigned to the resultSymbol attribute of the LayerSearchSource appears on the queried parcel:
An entered query will be appended to the URL of the webpage. When the page is refreshed, the MapView zooms back to the queried parcel and the red pin is dropped on in.
However, I want to use highlights instead of resultSymbols. In the above scenario, I would like automatic highlights to appear when a valid parcel is queried, and when the page is refreshed (with a valid query string in the URL), like so:
What is the best way to accomplish this? I'm using TypeScript ReactJS.
Solved! Go to Solution.
It seems the simplest thing to do, at least to accomplish this visually, would be to use a SimpleFillSymbol with your resultSymbol instead of a PictureMarkerSymbol. Would that not accomplish what you're trying to do?
It seems the simplest thing to do, at least to accomplish this visually, would be to use a SimpleFillSymbol with your resultSymbol instead of a PictureMarkerSymbol. Would that not accomplish what you're trying to do?
That's actually exactly what I was looking for; I wasn't aware of the existence of FillSymbols, and using the SimpleFillSymbol accomplishes exactly what I needed. Thanks a million.