<?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 Basemap switch with change in map scale. in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167056#M5348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it difficult to use scale dependancy to switch between Street_Map, Imagery, and topo's in the new Flex Viewer 2.3.1? I would like to leave StreetMap visible on initial extent w/option of switching to topo's but automatically go to aerial imagery when zoomed in beyond visible extent of StreetMap or topo. I know in previous versions of the viewer this was handled in the MapManager.mxml code using&amp;nbsp; the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function checkScale(evt:Event):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var tl:ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//If ESRI Street maps &amp;lt;9000 Turn off ESRI Street map and switch to imagery. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if(map.scale &amp;lt; 9000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Street Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Satellite Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(map.scale &amp;gt; 9000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Street Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Satellite Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 20:19:21 GMT</pubDate>
    <dc:creator>HenryMoore</dc:creator>
    <dc:date>2011-07-27T20:19:21Z</dc:date>
    <item>
      <title>Basemap switch with change in map scale.</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167056#M5348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it difficult to use scale dependancy to switch between Street_Map, Imagery, and topo's in the new Flex Viewer 2.3.1? I would like to leave StreetMap visible on initial extent w/option of switching to topo's but automatically go to aerial imagery when zoomed in beyond visible extent of StreetMap or topo. I know in previous versions of the viewer this was handled in the MapManager.mxml code using&amp;nbsp; the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function checkScale(evt:Event):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var tl:ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//If ESRI Street maps &amp;lt;9000 Turn off ESRI Street map and switch to imagery. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if(map.scale &amp;lt; 9000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Street Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Satellite Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(map.scale &amp;gt; 9000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Street Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl = map.getLayer("Satellite Map") as ArcGISTiledMapServiceLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tl.visible = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 20:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167056#M5348</guid>
      <dc:creator>HenryMoore</dc:creator>
      <dc:date>2011-07-27T20:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap switch with change in map scale.</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167057#M5349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Robert Scheitlin! I added the following to the "private function config(event:AppEvent):void"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the code worked fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addEventListener(ZoomEvent.ZOOM_END, checkScale);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 14:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167057#M5349</guid>
      <dc:creator>HenryMoore</dc:creator>
      <dc:date>2011-07-29T14:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap switch with change in map scale.</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167058#M5350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How would this be accomplished in 2.5?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 15:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167058#M5350</guid>
      <dc:creator>BeckyCarr</dc:creator>
      <dc:date>2012-03-09T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap switch with change in map scale.</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167059#M5351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Becky,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This can all be done using the eMapSwitcher widget now. Just read the readme.txt for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/rc/item.html?id=7156b0acf6574f848ddfd3d7e155746b"&gt;http://www.arcgis.com/rc/item.html?id=7156b0acf6574f848ddfd3d7e155746b&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to click the top arrow (promote) as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Promote.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 15:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167059#M5351</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-03-09T15:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap switch with change in map scale.</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167060#M5352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Works great!&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 18:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/basemap-switch-with-change-in-map-scale/m-p/167060#M5352</guid>
      <dc:creator>BeckyCarr</dc:creator>
      <dc:date>2012-03-09T18:48:32Z</dc:date>
    </item>
  </channel>
</rss>

