<?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: Flex API 1.3 map extent binding in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233747#M5496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;another way is to bind in the markup&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;ns1:myMap extent="{MapData.instance.ext}"&amp;nbsp; width="800" height="250"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns1:myMap&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:13:16 GMT</pubDate>
    <dc:creator>Drew</dc:creator>
    <dc:date>2021-12-12T16:13:16Z</dc:date>
    <item>
      <title>Flex API 1.3 map extent binding</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233743#M5492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom map component&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class myMap extends Map and I bind the extent to a model:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this.extent = MapData.instance.ext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I update MapData.instance.ext in my controller, but map doesn't change its extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have other map attributes bound to the same model, they all work fine, only extent I couldn't make work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any insights.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 12:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233743#M5492</guid>
      <dc:creator>SteveLi</dc:creator>
      <dc:date>2010-10-28T12:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flex API 1.3 map extent binding</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233744#M5493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is this.extent set to be bindable ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
[Bindable]
public var foo:String;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, Rethinking your problem�?�.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess this.extent is coming from Map itself and is not a custom property.. so it must be bindable already�?�.. hummm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233744#M5493</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2021-12-11T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Flex API 1.3 map extent binding</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233745#M5494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did a few test and the only way (in code) that I could do it was like below�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified it to match your code so there could be some modifications need.. If anything it will give you some clues&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

override public function myMap()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; super();
&amp;nbsp;&amp;nbsp; this.addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; private function onCreationComplete(event:FlexEvent):void
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; BindingUtils.bindSetter(setterFunc, MapData.instance, "ext");
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; private function setterFunc(ext:Extent):void 
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; this.extent= ext;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233745#M5494</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2021-12-11T11:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flex API 1.3 map extent binding</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233746#M5495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somehow it's still not working for me through a testing button:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MapData.instance.ext = new Extent(-8560018, 3812354, 333583, 8215127, new SpatialReference(102100));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No change on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I did a few test and the only way (in code) that I could do it was like below�?�&lt;BR /&gt;&lt;BR /&gt;I modified it to match your code so there could be some modifications need.. If anything it will give you some clues&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

override public function myMap()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; super();
&amp;nbsp;&amp;nbsp; this.addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; private function onCreationComplete(event:FlexEvent):void
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; BindingUtils.bindSetter(setterFunc, MapData.instance, "ext");
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; private function setterFunc(ext:Extent):void 
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; this.extent= ext;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 

&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233746#M5495</guid>
      <dc:creator>SteveLi</dc:creator>
      <dc:date>2021-12-11T11:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Flex API 1.3 map extent binding</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233747#M5496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;another way is to bind in the markup&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;ns1:myMap extent="{MapData.instance.ext}"&amp;nbsp; width="800" height="250"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns1:myMap&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-api-1-3-map-extent-binding/m-p/233747#M5496</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2021-12-12T16:13:16Z</dc:date>
    </item>
  </channel>
</rss>

