<?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 BasmapGallery,,,&amp;nbsp; Basemaps from two different locations? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141072#M13120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a locally installed server which puts out geospatial content on an intranet setup. I have a number of different services which are consumed by folks in the office.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on taking the BasemapGallery (dropdown example from the APIs) and have three services which are candidates for my dropdown. I have been able to put the services/basemaps together in the gallery and can switch between them IF THEY COME FROM THE SAME LOCATION ON THE SERVER..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, I have two which are located in Folder "A" and if I list them first in my code they will both open and display. However, the service which is in Folder "B" will only show its "Title" on the dropdown, but will not display. If I swap the services around, ie put the service in Folder "B" First... then it will display but not the services listed in Folder "A".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a quick fix for this? or do I have to put code in to destroy/build dynamically the BasemapGallery based upon the DropDown Selection event? My code below.. ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;function createBasemapGallery(){&lt;BR /&gt;//Manually creating a list of basemaps to display&lt;BR /&gt;var basemaps = [];&lt;BR /&gt;&lt;SPAN&gt;var myStreets = new esri.dijit.BasemapLayer({url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myLittleServer/rest/services/Folder_A/MapServer" rel="nofollow" target="_blank"&gt;http://myLittleServer/rest/services/Folder_A/MapServer&lt;/A&gt;&lt;SPAN&gt;"});&lt;/SPAN&gt;&lt;BR /&gt;var theStreets = new esri.dijit.Basemap({layers: [myStreets], title: "The StreetNetwork"});&lt;BR /&gt;basemaps.push (theStreets);&lt;BR /&gt;&lt;BR /&gt;var myHouses = new esri.dijit.BasemapLayer({url: "http//myLittleServer/rest/services/Folder_B/MapServer"});&lt;BR /&gt;var theHouses = new esri.dijit.Basemap({layers:[myHouses], title: "The Houses"});&lt;BR /&gt;basemaps.push (theHouses);&lt;BR /&gt;&lt;BR /&gt;basemapGallery = new esri.dijit.BasemapGallery({&lt;BR /&gt;showArcGISBasemaps: false, &lt;BR /&gt;basemaps: basemaps,&lt;BR /&gt;bingMapskey: bingKey, &lt;BR /&gt;map: map&lt;BR /&gt;});&lt;BR /&gt;//BasemapGallery.startup isnt needed because we aren't using the default basemap, instead&lt;BR /&gt;//we are going to create a custom user interface to display the basemaps, in this case a menu.&lt;BR /&gt;dojo.forEach(basemapGallery.basemaps, function(basemap) {&lt;BR /&gt;//Add a menu item for each basemap, when the menu items are selected&lt;BR /&gt;dijit.byId("bingMenu").addChild(new dijit.MenuItem({&lt;BR /&gt;label: basemap.title, &lt;BR /&gt;onClick: dojo.hitch(this, function() {&lt;BR /&gt;this.basemapGallery.select(basemap.id);&lt;BR /&gt;})&lt;BR /&gt;}));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 11:40:45 GMT</pubDate>
    <dc:creator>AndrewDavis</dc:creator>
    <dc:date>2012-05-21T11:40:45Z</dc:date>
    <item>
      <title>BasmapGallery,,,  Basemaps from two different locations?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141072#M13120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a locally installed server which puts out geospatial content on an intranet setup. I have a number of different services which are consumed by folks in the office.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on taking the BasemapGallery (dropdown example from the APIs) and have three services which are candidates for my dropdown. I have been able to put the services/basemaps together in the gallery and can switch between them IF THEY COME FROM THE SAME LOCATION ON THE SERVER..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, I have two which are located in Folder "A" and if I list them first in my code they will both open and display. However, the service which is in Folder "B" will only show its "Title" on the dropdown, but will not display. If I swap the services around, ie put the service in Folder "B" First... then it will display but not the services listed in Folder "A".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a quick fix for this? or do I have to put code in to destroy/build dynamically the BasemapGallery based upon the DropDown Selection event? My code below.. ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;function createBasemapGallery(){&lt;BR /&gt;//Manually creating a list of basemaps to display&lt;BR /&gt;var basemaps = [];&lt;BR /&gt;&lt;SPAN&gt;var myStreets = new esri.dijit.BasemapLayer({url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myLittleServer/rest/services/Folder_A/MapServer" rel="nofollow" target="_blank"&gt;http://myLittleServer/rest/services/Folder_A/MapServer&lt;/A&gt;&lt;SPAN&gt;"});&lt;/SPAN&gt;&lt;BR /&gt;var theStreets = new esri.dijit.Basemap({layers: [myStreets], title: "The StreetNetwork"});&lt;BR /&gt;basemaps.push (theStreets);&lt;BR /&gt;&lt;BR /&gt;var myHouses = new esri.dijit.BasemapLayer({url: "http//myLittleServer/rest/services/Folder_B/MapServer"});&lt;BR /&gt;var theHouses = new esri.dijit.Basemap({layers:[myHouses], title: "The Houses"});&lt;BR /&gt;basemaps.push (theHouses);&lt;BR /&gt;&lt;BR /&gt;basemapGallery = new esri.dijit.BasemapGallery({&lt;BR /&gt;showArcGISBasemaps: false, &lt;BR /&gt;basemaps: basemaps,&lt;BR /&gt;bingMapskey: bingKey, &lt;BR /&gt;map: map&lt;BR /&gt;});&lt;BR /&gt;//BasemapGallery.startup isnt needed because we aren't using the default basemap, instead&lt;BR /&gt;//we are going to create a custom user interface to display the basemaps, in this case a menu.&lt;BR /&gt;dojo.forEach(basemapGallery.basemaps, function(basemap) {&lt;BR /&gt;//Add a menu item for each basemap, when the menu items are selected&lt;BR /&gt;dijit.byId("bingMenu").addChild(new dijit.MenuItem({&lt;BR /&gt;label: basemap.title, &lt;BR /&gt;onClick: dojo.hitch(this, function() {&lt;BR /&gt;this.basemapGallery.select(basemap.id);&lt;BR /&gt;})&lt;BR /&gt;}));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 11:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141072#M13120</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2012-05-21T11:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: BasmapGallery,,,  Basemaps from two different locations?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141073#M13121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have gone back and noticed that the services in Folder A have a different Initial Extent than the services in Folder B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would this matter?&amp;nbsp; Both folders have services which are using a spatial reference of 4326.&amp;nbsp; The difference is the initial extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 13:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141073#M13121</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2012-05-22T13:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: BasmapGallery,,,  Basemaps from two different locations?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141074#M13122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The other difference between these two folders is the tiling scheme.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have heard that the first tiled basemap/layer brought into the map object sets the tiling/cach level schema for the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basmapgallery-nbsp-basemaps-from-two-different/m-p/141074#M13122</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2012-05-23T10:20:50Z</dc:date>
    </item>
  </channel>
</rss>

