<?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 Basemaps: arcgis.com web map basemap VERSUS ArcGIS Javascript API basemap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-arcgis-com-web-map-basemap-versus-arcgis/m-p/66884#M5867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am struggling with working with basemaps. My (in early development) webpage, which I am writing "from scratch" (not&amp;nbsp; based on a template/boilerplate) using Dojo and the ArcGIS Javascript API 3.8, shows an ArcGIS.com web map that I add&amp;nbsp; via arcgisUtils.createMap(). The arcgis.com web map contains the Topographic basemap and two layers from ArcGIS Server.&amp;nbsp; Here's the current state of my webpage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://209.80.128.252/dcr/learning/index20140417.html"&gt;http://209.80.128.252/dcr/learning/index20140417.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My webpage includes a BasemapGallery widget, which seems to work fine (except that it doesn't highlight the default&amp;nbsp; basemap with a pink border when it starts up; once the user selects a different basemap in the BasemapGallery, it&amp;nbsp; highlights it). From what I can tell, the BasemapGallery widget isn't aware of what basemap the arcgis.com web map uses&amp;nbsp; by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am adding homemade code* to create a "permalink" Share tool; it creates a custom URL that the user can use to share&amp;nbsp; the current state (zoom extent and appearance) of the map by adding URL query string parameters to the base URL, i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://209.80.128.252/dcr/learning/index20140417.html?lon=-73.1664234&amp;amp;lat=42.6360504&amp;amp;z=15&amp;amp;basemap=hybrid"&gt;http://209.80.128.252/dcr/learning/index20140417.html?lon=-73.1664234&amp;amp;lat=42.6360504&amp;amp;z=15&amp;amp;basemap=hybrid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the well-known basemap names** (streets, satellite, oceans, topo, hybrid, gray, national-geographic,&amp;nbsp; osm) in the parameter. I can't figure out how to get and set the basemap correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this time my webpage code is all in one big HTML file; the functions that deal with the URL query string parameters&amp;nbsp; are readUrlQueryStringParameters(), writeUrlQueryStringParameters(), and createUrlQueryStringParameters().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set up popup alerts that show the values for map.setBasemap() and map.getBasemap(). If you haven't explicitly set a&amp;nbsp; basemap via the URL, map.getBasemap() returns nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.setBasemap("osm") seems to put the new basemap UNDER the default web map basemap? If you pan quickly sometimes you&amp;nbsp; can see the first basemap draw and then be covered by the second basemap!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is going on? Is an arcgis.com web map basemap a completely different (and parallel) thing from an ArcGIS Javascript API basemap?&amp;nbsp; Is the BasemapGallery widget (and the entire basemap-handling part of the API) not ready for prime time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess on a bigger level my question is whether working with an arcgis.com web map is a bad idea? Does the API really&amp;nbsp; work well with them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read (and didn't fully understand) the following thread that seems to be about similar problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/88353-setBasemap%28%29-not-working-on-webmap-with-string-or-object-value"&gt;http://forums.arcgis.com/threads/88353-setBasemap%28%29-not-working-on-webmap-with-string-or-object-value&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems an ESRI employee is suggesting a hack where you make your web map basemap 100% transparent? Yikes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(*side question 1: is there a canned permalink/share widget that does this or am I right to code this by hand?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(**side question 2: is there a well-known-name for the "Terrain with Labels" basemap?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 19:38:59 GMT</pubDate>
    <dc:creator>DavidKimball1</dc:creator>
    <dc:date>2014-04-17T19:38:59Z</dc:date>
    <item>
      <title>Basemaps: arcgis.com web map basemap VERSUS ArcGIS Javascript API basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-arcgis-com-web-map-basemap-versus-arcgis/m-p/66884#M5867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am struggling with working with basemaps. My (in early development) webpage, which I am writing "from scratch" (not&amp;nbsp; based on a template/boilerplate) using Dojo and the ArcGIS Javascript API 3.8, shows an ArcGIS.com web map that I add&amp;nbsp; via arcgisUtils.createMap(). The arcgis.com web map contains the Topographic basemap and two layers from ArcGIS Server.&amp;nbsp; Here's the current state of my webpage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://209.80.128.252/dcr/learning/index20140417.html"&gt;http://209.80.128.252/dcr/learning/index20140417.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My webpage includes a BasemapGallery widget, which seems to work fine (except that it doesn't highlight the default&amp;nbsp; basemap with a pink border when it starts up; once the user selects a different basemap in the BasemapGallery, it&amp;nbsp; highlights it). From what I can tell, the BasemapGallery widget isn't aware of what basemap the arcgis.com web map uses&amp;nbsp; by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am adding homemade code* to create a "permalink" Share tool; it creates a custom URL that the user can use to share&amp;nbsp; the current state (zoom extent and appearance) of the map by adding URL query string parameters to the base URL, i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://209.80.128.252/dcr/learning/index20140417.html?lon=-73.1664234&amp;amp;lat=42.6360504&amp;amp;z=15&amp;amp;basemap=hybrid"&gt;http://209.80.128.252/dcr/learning/index20140417.html?lon=-73.1664234&amp;amp;lat=42.6360504&amp;amp;z=15&amp;amp;basemap=hybrid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the well-known basemap names** (streets, satellite, oceans, topo, hybrid, gray, national-geographic,&amp;nbsp; osm) in the parameter. I can't figure out how to get and set the basemap correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this time my webpage code is all in one big HTML file; the functions that deal with the URL query string parameters&amp;nbsp; are readUrlQueryStringParameters(), writeUrlQueryStringParameters(), and createUrlQueryStringParameters().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set up popup alerts that show the values for map.setBasemap() and map.getBasemap(). If you haven't explicitly set a&amp;nbsp; basemap via the URL, map.getBasemap() returns nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.setBasemap("osm") seems to put the new basemap UNDER the default web map basemap? If you pan quickly sometimes you&amp;nbsp; can see the first basemap draw and then be covered by the second basemap!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is going on? Is an arcgis.com web map basemap a completely different (and parallel) thing from an ArcGIS Javascript API basemap?&amp;nbsp; Is the BasemapGallery widget (and the entire basemap-handling part of the API) not ready for prime time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess on a bigger level my question is whether working with an arcgis.com web map is a bad idea? Does the API really&amp;nbsp; work well with them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read (and didn't fully understand) the following thread that seems to be about similar problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/88353-setBasemap%28%29-not-working-on-webmap-with-string-or-object-value"&gt;http://forums.arcgis.com/threads/88353-setBasemap%28%29-not-working-on-webmap-with-string-or-object-value&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems an ESRI employee is suggesting a hack where you make your web map basemap 100% transparent? Yikes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(*side question 1: is there a canned permalink/share widget that does this or am I right to code this by hand?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(**side question 2: is there a well-known-name for the "Terrain with Labels" basemap?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-arcgis-com-web-map-basemap-versus-arcgis/m-p/66884#M5867</guid>
      <dc:creator>DavidKimball1</dc:creator>
      <dc:date>2014-04-17T19:38:59Z</dc:date>
    </item>
  </channel>
</rss>

