<?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 Re: Change Search widget to use selectedColor instead of resultMarkerSymbol in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4445#M136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could try calling queryLayer.selectFeatures() instead of queryLayer.queryFeatures(). This returns an Array of features though instead of a FeatureSet so you'd also need to make some changes to createSearchResults(). It may be easier to just set the highlight on the Graphic yourself in createSearchResults(). You'd need to add a GlowFilter to the Graphic's filters array.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's what's used in the FeatureLayer:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter = new GlowFilter();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.alpha = 0.6;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.blurX = 16;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.blurY = 16;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.inner = feature.geometry is Polygon;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.strength = 8;&lt;BR /&gt;glowFilter.color = selectionColor;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Dasa!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thet gets me a lot closer: I was able to add a GlowFilter to each feature in the FeatureSet.&amp;nbsp; However it's still using the widget icon as a marker and I simply want to highlight the map feature icon as it's symbolized from the server (also a PictureMarkerSymbol).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I commented out this line in init:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.symbol = resultMarkerSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this one in createSearchResults():&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.symbol = searchResult.symbol = resultMarkerSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now the results are displayed with a black circle (with the yellow highlight/GlowFilter) on top of my map icons (see i1.png).&amp;nbsp; What I'd like to do is mimic the map icon getting highlighted similar when you select a feature to edit using the Edit widget.&amp;nbsp; i2.png shows the same feature icons but "un-highlighted".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jan 2011 16:16:05 GMT</pubDate>
    <dc:creator>ChrisBeaudette</dc:creator>
    <dc:date>2011-01-10T16:16:05Z</dc:date>
    <item>
      <title>Change Search widget to use selectedColor instead of resultMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4443#M134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to figure out how to modify the Search widget in the Flex Viewer so that selected features (points in my case) are highlighted with the "halo effect" using the selectedColor for the FeatureLayer. The widget currently "highlights" the selected features by overlaying the search icon on top of the point (w/ a slight offset). I want to disable the "icon symbol" in favor of a "highlight symbol".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like to disable the "icon symbol" I can simply comment out this line in displayFeatures():&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.symbol = searchResult.symbol = resultMarkerSymbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it's not clear to me how to implement the "highlight symbol".&amp;nbsp; It seems like I have to capture each selected feature and somehow (?) highlight it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 16:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4443#M134</guid>
      <dc:creator>ChrisBeaudette</dc:creator>
      <dc:date>2011-01-09T16:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change Search widget to use selectedColor instead of resultMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4444#M135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could try calling queryLayer.selectFeatures() instead of queryLayer.queryFeatures(). This returns an Array of features though instead of a FeatureSet so you'd also need to make some changes to createSearchResults(). It may be easier to just set the highlight on the Graphic yourself in createSearchResults(). You'd need to add a GlowFilter to the Graphic's filters array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what's used in the FeatureLayer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter = new GlowFilter();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.alpha = 0.6;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.blurX = 16;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.blurY = 16;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.inner = feature.geometry is Polygon;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.strength = 8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;glowFilter.color = selectionColor;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 21:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4444#M135</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-01-09T21:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change Search widget to use selectedColor instead of resultMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4445#M136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could try calling queryLayer.selectFeatures() instead of queryLayer.queryFeatures(). This returns an Array of features though instead of a FeatureSet so you'd also need to make some changes to createSearchResults(). It may be easier to just set the highlight on the Graphic yourself in createSearchResults(). You'd need to add a GlowFilter to the Graphic's filters array.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#filters&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/GlowFilter.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's what's used in the FeatureLayer:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter = new GlowFilter();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.alpha = 0.6;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.blurX = 16;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.blurY = 16;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.inner = feature.geometry is Polygon;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glowFilter.strength = 8;&lt;BR /&gt;glowFilter.color = selectionColor;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Dasa!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thet gets me a lot closer: I was able to add a GlowFilter to each feature in the FeatureSet.&amp;nbsp; However it's still using the widget icon as a marker and I simply want to highlight the map feature icon as it's symbolized from the server (also a PictureMarkerSymbol).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I commented out this line in init:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.symbol = resultMarkerSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this one in createSearchResults():&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.symbol = searchResult.symbol = resultMarkerSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now the results are displayed with a black circle (with the yellow highlight/GlowFilter) on top of my map icons (see i1.png).&amp;nbsp; What I'd like to do is mimic the map icon getting highlighted similar when you select a feature to edit using the Edit widget.&amp;nbsp; i2.png shows the same feature icons but "un-highlighted".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 16:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4445#M136</guid>
      <dc:creator>ChrisBeaudette</dc:creator>
      <dc:date>2011-01-10T16:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Search widget to use selectedColor instead of resultMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4446#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently the Search Widget doesn't retrieve the server's symbology. Here are a couple of options you could try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Use the DetailsTask to get the LayerDetails and then set the graphicsLayer.renderer to layerDetails.drawingInfo.renderer. Make sure than your getting the fields used by the renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/DetailsTask.html#getDetails("&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/DetailsTask.html#getDetails(&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Instead of adding a GraphicsLayer to the map, add a FeatureLayer and call selectFeatures() instead of queryFeatures().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 18:57:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4446#M137</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-01-10T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change Search widget to use selectedColor instead of resultMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4447#M138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually a better option than 1 above is to get the layerDetails from the FeatureLayer that's already being created.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 19:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4447#M138</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-01-10T19:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change Search widget to use selectedColor instead of resultMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4448#M139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever get a proper solution??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Dasa!&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Thet gets me a lot closer: I was able to add a GlowFilter to each feature in the FeatureSet.&amp;nbsp; However it's still using the widget icon as a marker and I simply want to highlight the map feature icon as it's symbolized from the server (also a PictureMarkerSymbol).&lt;BR /&gt;&lt;BR /&gt;I commented out this line in init:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.symbol = resultMarkerSymbol;&lt;BR /&gt;&lt;BR /&gt;and this one in createSearchResults():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.symbol = searchResult.symbol = resultMarkerSymbol;&lt;BR /&gt;&lt;BR /&gt;But now the results are displayed with a black circle (with the yellow highlight/GlowFilter) on top of my map icons (see i1.png).&amp;nbsp; What I'd like to do is mimic the map icon getting highlighted similar when you select a feature to edit using the Edit widget.&amp;nbsp; i2.png shows the same feature icons but "un-highlighted".&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 15:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/change-search-widget-to-use-selectedcolor-instead/m-p/4448#M139</guid>
      <dc:creator>DerekHunter</dc:creator>
      <dc:date>2011-05-13T15:54:54Z</dc:date>
    </item>
  </channel>
</rss>

