<?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 How to set base map dynamically in sample flex viewer? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461588#M10619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have worked out how to pass a url from a .net host app to a simple flex application thanks to some help on this forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/5793-Pass-map-service-layer-to-Flex-dynamically-from-.NET-host-application?p=19242#post19242"&gt;http://forums.arcgis.com/threads/5793-Pass-map-service-layer-to-Flex-dynamically-from-.NET-host-application?p=19242#post19242&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now that I have proved I can do this, I want to start using the sample flex viewer as my flex app and be able to set the maps dynamically there. As far as I can see though, the base maps are coded into the config.xml. How would I dynamically change these based on a map service URL I am passing in from .NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope someone can help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 07:26:33 GMT</pubDate>
    <dc:creator>grahamcooke</dc:creator>
    <dc:date>2010-06-17T07:26:33Z</dc:date>
    <item>
      <title>How to set base map dynamically in sample flex viewer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461588#M10619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have worked out how to pass a url from a .net host app to a simple flex application thanks to some help on this forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/5793-Pass-map-service-layer-to-Flex-dynamically-from-.NET-host-application?p=19242#post19242"&gt;http://forums.arcgis.com/threads/5793-Pass-map-service-layer-to-Flex-dynamically-from-.NET-host-application?p=19242#post19242&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now that I have proved I can do this, I want to start using the sample flex viewer as my flex app and be able to set the maps dynamically there. As far as I can see though, the base maps are coded into the config.xml. How would I dynamically change these based on a map service URL I am passing in from .NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope someone can help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 07:26:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461588#M10619</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2010-06-17T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to set base map dynamically in sample flex viewer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461589#M10620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I sorted this out, I had everything right, but I needed to comment the proxy line in the mapmanager.mxml as per one of Robert Scheitlins posts on the old forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However i have another problem now that I hope someone can help me with. I managed to embed a simple mxml application in an aspx page with not problems. I was then able to run my asp.net website and redirect to the flex app from within there. I now want the same website to have the sample flex viewer embedded in the aspx page and redirect to that. I have implemented this by copying what is in the index.html into the aspx page but when i run the website and redirect to the sample flex viewer host page, I get an httpservice error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone point me in the right direction please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 16:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461589#M10620</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2010-06-21T16:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to set base map dynamically in sample flex viewer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461590#M10621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;just in case anyone stumbles across this thread, i fixed this. I didnt realise you have to copy EVERYTHING from the bin-release folder of the flex project into the folder that holds the aspx page which will host your flex app. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i did this and rebuilt the website everything worked fine!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 17:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-set-base-map-dynamically-in-sample-flex/m-p/461590#M10621</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2010-06-22T17:44:12Z</dc:date>
    </item>
  </channel>
</rss>

