<?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: Start flex map to zoom to an ID in the URL in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52681#M1250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Les,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you are talking about a Flex Viewer application than you can use the eSearch Widget for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e" title="http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e"&gt;http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you talking about a custom Flex API application then you will have to develop your own capability to do this using a QueryTask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 16:26:11 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-09-29T16:26:11Z</dc:date>
    <item>
      <title>Start flex map to zoom to an ID in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52680#M1249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to pass a parcel number to a Flex application and have the application zoom to the parcel specified in the URL &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52680#M1249</guid>
      <dc:creator>LesHampton</dc:creator>
      <dc:date>2014-09-29T16:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Start flex map to zoom to an ID in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52681#M1250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Les,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you are talking about a Flex Viewer application than you can use the eSearch Widget for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e" title="http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e"&gt;http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you talking about a custom Flex API application then you will have to develop your own capability to do this using a QueryTask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52681#M1250</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-09-29T16:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Start flex map to zoom to an ID in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52682#M1251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A good DIY solution is using the IBrowserManager interface.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64e50-7ff4.html" title="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64e50-7ff4.html"&gt;Adobe Flex 4.6 * Using the BrowserManager&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to use setTimeout to wait for the map to load and all your layers. Something like this.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14120082941358020 jive_text_macro" jivemacro_uid="_14120082941358020"&gt;
&lt;P&gt;map.addEventListener(MapEvent.LOAD, function():void {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; setTimeout(function():void {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bm = BrowserManager.getInstance();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bm.init();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var o:Object = URLUtil.stringToObject(bm.fragment);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var type:String = String(o.view);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (type != "") {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switchMap(views[type]); // I use it for custom views&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }, 500)&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52682#M1251</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-09-29T16:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Start flex map to zoom to an ID in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52683#M1252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You, I will give the Suggestions a try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/start-flex-map-to-zoom-to-an-id-in-the-url/m-p/52683#M1252</guid>
      <dc:creator>LesHampton</dc:creator>
      <dc:date>2014-09-29T16:45:17Z</dc:date>
    </item>
  </channel>
</rss>

