<?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: Multiple basemaps and dynamic map services in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-basemaps-and-dynamic-map-services/m-p/280597#M25908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edited to add: Make sure the order of your map.addlayers are correct. First In, Last out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.AddLayer(Base Map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.AddLayer(Aerial Map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.AddLayer(Dynamic Map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They draw based on order of listing order: Base and Aerial will always be under the Dynamic Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That proposition is not very difficult. I just started Javascripting and working with the API last week and have had some good success using the samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically you are going to need to merge the contents of a number of samples, depending on the overall functionality you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get started I would look at the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution for visibility control for cached maps (Google like buttons):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_agol.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_agol.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another solution for visibility control for dynamic maps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_explicitlayerlist.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_explicitlayerlist.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incoroporating multiple cached map services at different scales:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_switch_layer_on_zoom.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_switch_layer_on_zoom.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incorporating multiple dynamic map services:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_twodynamic.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_twodynamic.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is really an over simplification of what is necessary. It takes some finessing of the parts and pieces and functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The app I created over the past week has three different cached maps and three dynamic maps, but the dynamic maps make up about 25 layers that need to be individually controlled, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can be done without too much heartache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would highly recommend Aptana Studio and Firefox/Firbug for coding/debugging. I'm new to using these together, but have found them very, very useful and funtional.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 May 2010 13:27:31 GMT</pubDate>
    <dc:creator>KeithSandell</dc:creator>
    <dc:date>2010-05-21T13:27:31Z</dc:date>
    <item>
      <title>Multiple basemaps and dynamic map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-basemaps-and-dynamic-map-services/m-p/280596#M25907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have two basemaps we would like to use. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Background&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Aerial&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both are cached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We also have a dynamic map service with about 7 layers on that we would like to use. When i follow the instructions on adding multiple basemaps i can see the background (which is the first map background). It also has the dynamic layer data ontop however if i swop to aerial, the dynamic service disappears when the aerial is turned on. Is there a call to keep my dynamic service on continuously?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 09:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-basemaps-and-dynamic-map-services/m-p/280596#M25907</guid>
      <dc:creator>AndyBurns</dc:creator>
      <dc:date>2010-05-21T09:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple basemaps and dynamic map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-basemaps-and-dynamic-map-services/m-p/280597#M25908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edited to add: Make sure the order of your map.addlayers are correct. First In, Last out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.AddLayer(Base Map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.AddLayer(Aerial Map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.AddLayer(Dynamic Map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They draw based on order of listing order: Base and Aerial will always be under the Dynamic Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That proposition is not very difficult. I just started Javascripting and working with the API last week and have had some good success using the samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically you are going to need to merge the contents of a number of samples, depending on the overall functionality you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get started I would look at the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution for visibility control for cached maps (Google like buttons):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_agol.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_agol.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another solution for visibility control for dynamic maps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_explicitlayerlist.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_explicitlayerlist.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incoroporating multiple cached map services at different scales:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_switch_layer_on_zoom.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_switch_layer_on_zoom.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incorporating multiple dynamic map services:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_twodynamic.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/map_twodynamic.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is really an over simplification of what is necessary. It takes some finessing of the parts and pieces and functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The app I created over the past week has three different cached maps and three dynamic maps, but the dynamic maps make up about 25 layers that need to be individually controlled, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can be done without too much heartache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would highly recommend Aptana Studio and Firefox/Firbug for coding/debugging. I'm new to using these together, but have found them very, very useful and funtional.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 13:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-basemaps-and-dynamic-map-services/m-p/280597#M25908</guid>
      <dc:creator>KeithSandell</dc:creator>
      <dc:date>2010-05-21T13:27:31Z</dc:date>
    </item>
  </channel>
</rss>

