<?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: Basic FeatureLayer question in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297484#M7059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've decided to change tactics. I'm using a QueryTask with a GraphicsLayer instead of a FeatureLayer. I took the source code from the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;Zoom to query result&lt;/A&gt;&lt;SPAN&gt; example and it works great for selecting meters. It doesn't change the extent when there is only one meter selected, but since this is going to be an outage map I don't think it's an issue (at least not yet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 16:40:04 GMT</pubDate>
    <dc:creator>KennMurphy</dc:creator>
    <dc:date>2011-03-23T16:40:04Z</dc:date>
    <item>
      <title>Basic FeatureLayer question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297479#M7054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use a FeatureLayer to search for meters in our service territory. The searching works great, but I can't seem to get it to change the view so that all the returned features are in view. I was attempting to do it as follows, but it isn't working. The meters are in a layer that is visible only at a certain zoom level and I made sure to be zoomed in to the appropriate level before conducting the search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function updateEndFunction(event:Event):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(fLayer.selectedFeatures);
&amp;nbsp;&amp;nbsp;&amp;nbsp; OutageMap.extent = graphicsExtent;
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 21:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297479#M7054</guid>
      <dc:creator>KennMurphy</dc:creator>
      <dc:date>2011-03-21T21:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Basic FeatureLayer question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297480#M7055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it going to the right area, but just too far zoomed in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:58:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297480#M7055</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-03-21T22:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Basic FeatureLayer question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297481#M7056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It doesn't move at all. I can search for different meters and the marks will change, but the view never changes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297481#M7056</guid>
      <dc:creator>KennMurphy</dc:creator>
      <dc:date>2011-03-21T22:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Basic FeatureLayer question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297482#M7057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When is your updateEndFunction() being called? Are you calling selectFeatures() on your FeatureLayer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 01:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297482#M7057</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-03-23T01:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Basic FeatureLayer question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297483#M7058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I set it in the FeatureLayer definition so I'm thinking it gets called after the Features get marked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(i.e.): &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;esri:FeatureLayer id="fLayer" visible="true" mode="snapshot" symbol="{MeterMark}" outFields="MeterNumber" updateEnd="zoomToExtent(event)" url="http://vmvea-arcgis:8399/arcgis/rest/services/Dispatch_Map/MapServer/0"/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wasn't calling selectFeatures, but I have changed my code to call the selectFeatures function to select all the features present in the layer, but the extent still doesn't change. Do i need to refresh the map or something to get it to move the view?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 15:16:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297483#M7058</guid>
      <dc:creator>KennMurphy</dc:creator>
      <dc:date>2011-03-23T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Basic FeatureLayer question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297484#M7059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've decided to change tactics. I'm using a QueryTask with a GraphicsLayer instead of a FeatureLayer. I took the source code from the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;Zoom to query result&lt;/A&gt;&lt;SPAN&gt; example and it works great for selecting meters. It doesn't change the extent when there is only one meter selected, but since this is going to be an outage map I don't think it's an issue (at least not yet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 16:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/basic-featurelayer-question/m-p/297484#M7059</guid>
      <dc:creator>KennMurphy</dc:creator>
      <dc:date>2011-03-23T16:40:04Z</dc:date>
    </item>
  </channel>
</rss>

