<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Assigning different symbols to search results of the same geometry. Is it possible? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assigning-different-symbols-to-search-results-of/m-p/1135683#M76026</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a search widget that is pointing to different layers. The information that can be retrieve is usually of the same geometry and I want to assign a different "picture-marker" to show on the map depending on what the result is.&lt;/P&gt;&lt;P&gt;I have found a way to assign a single symbol in the search widget:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;resultSymbol: {
                    type: "picture-marker", // autocasts as new PictureMarkerSymbol()
                    url: "https://webdev.usu.edu/map2/images/icons/aggies.png",
                    width: '32px',
                    height: '37px'
                  },&lt;/LI-CODE&gt;&lt;P&gt;But this creates a single symbol for all search results. I'd like&amp;nbsp; for example to assign a different symbol if the result is a building, a parking space, etc...&lt;/P&gt;&lt;P&gt;I have tried to define a renderer but the search widget doesn't seem to accept these.&lt;/P&gt;&lt;P&gt;Is this something that can be done?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;B-&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 22:53:56 GMT</pubDate>
    <dc:creator>Fox71</dc:creator>
    <dc:date>2022-01-20T22:53:56Z</dc:date>
    <item>
      <title>Assigning different symbols to search results of the same geometry. Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assigning-different-symbols-to-search-results-of/m-p/1135683#M76026</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a search widget that is pointing to different layers. The information that can be retrieve is usually of the same geometry and I want to assign a different "picture-marker" to show on the map depending on what the result is.&lt;/P&gt;&lt;P&gt;I have found a way to assign a single symbol in the search widget:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;resultSymbol: {
                    type: "picture-marker", // autocasts as new PictureMarkerSymbol()
                    url: "https://webdev.usu.edu/map2/images/icons/aggies.png",
                    width: '32px',
                    height: '37px'
                  },&lt;/LI-CODE&gt;&lt;P&gt;But this creates a single symbol for all search results. I'd like&amp;nbsp; for example to assign a different symbol if the result is a building, a parking space, etc...&lt;/P&gt;&lt;P&gt;I have tried to define a renderer but the search widget doesn't seem to accept these.&lt;/P&gt;&lt;P&gt;Is this something that can be done?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;B-&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 22:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assigning-different-symbols-to-search-results-of/m-p/1135683#M76026</guid>
      <dc:creator>Fox71</dc:creator>
      <dc:date>2022-01-20T22:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning different symbols to search results of the same geometry. Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assigning-different-symbols-to-search-results-of/m-p/1136227#M76040</link>
      <description>&lt;P&gt;I don't think you can do such a thing &lt;STRONG&gt;directly&lt;/STRONG&gt; with the search result, but you could take the result and put it in a graphics layer, for which you could give each graphic whatever symbol you wished...?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 20:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assigning-different-symbols-to-search-results-of/m-p/1136227#M76040</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2022-01-23T20:19:25Z</dc:date>
    </item>
  </channel>
</rss>

