<?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: actionscript ArcGISTiledMapServiceLayer + Graphics Layer =&amp;gt; no map in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/actionscript-arcgistiledmapservicelayer-graphics/m-p/737768#M16377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mm-und,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will nedd to set the lods when you have a map that has a graphics layer added as the first layer and then you want to add a tiled layer. you can get the lods from the tiled layer, but the map does this automatically when the tiled layer is already added to to the map as it is in your mxml case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 20:07:30 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-06-14T20:07:30Z</dc:date>
    <item>
      <title>actionscript ArcGISTiledMapServiceLayer + Graphics Layer =&amp;amp;gt; no map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/actionscript-arcgistiledmapservicelayer-graphics/m-p/737767#M16376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a very simple example of an application using a ArcGISTiledMapServiceLayer. I would like to use the actionscript version rather than the MXML version to dynamically change the available layers. The problem is once I introduce a GraphicsLayer, the map no longer shows up. Without the GraphicsLayer, the map displays normally. Also, if I use the MXML version (commented line) instead of the actionscript version, it also displays normally. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried adding the index argument to the addLayer function, but this has no effect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something simple I am missing, or is this a bug? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &amp;lt;s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; creationComplete="init(event)" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;nbsp; &amp;lt;fx:Declarations&amp;gt; &amp;nbsp; &amp;lt;!-- Place non-visual elements (e.g., services, value objects) here --&amp;gt;&amp;nbsp; &amp;lt;/fx:Declarations&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Script&amp;gt; &amp;nbsp; &amp;lt;![CDATA[ &amp;nbsp;&amp;nbsp; import com.esri.ags.layers.ArcGISTiledMapServiceLayer; &amp;nbsp;&amp;nbsp; private function init(event : Event = null) : void{ &amp;nbsp;&amp;nbsp;&amp;nbsp; var layer : ArcGISTiledMapServiceLayer = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"); &amp;nbsp;&amp;nbsp;&amp;nbsp; test.addLayer(layer); &amp;nbsp;&amp;nbsp; } &amp;nbsp; ]]&amp;gt;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map id="test"&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/&amp;gt;--&amp;gt; &amp;nbsp; &amp;lt;esri:GraphicsLayer id="breaksMap"/&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt; &amp;lt;/s:WindowedApplication&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 18:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/actionscript-arcgistiledmapservicelayer-graphics/m-p/737767#M16376</guid>
      <dc:creator>MatthewMah</dc:creator>
      <dc:date>2013-06-14T18:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: actionscript ArcGISTiledMapServiceLayer + Graphics Layer =&gt; no map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/actionscript-arcgistiledmapservicelayer-graphics/m-p/737768#M16377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mm-und,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will nedd to set the lods when you have a map that has a graphics layer added as the first layer and then you want to add a tiled layer. you can get the lods from the tiled layer, but the map does this automatically when the tiled layer is already added to to the map as it is in your mxml case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 20:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/actionscript-arcgistiledmapservicelayer-graphics/m-p/737768#M16377</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-06-14T20:07:30Z</dc:date>
    </item>
  </channel>
</rss>

