<?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: Request: Stop using webmaps in samples in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529038#M49370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks Kelly!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 15:44:17 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2013-10-02T15:44:17Z</dc:date>
    <item>
      <title>Request: Stop using webmaps in samples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529034#M49366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wasn't sure where to put this.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trend of using webmaps in &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var mapDeferred = arcgisUtils.createMap("62702544d70648e593bc05d65180fd64", "map");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is really frustrating as a developer. It hides so much code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at the LayerSwipe sample.&amp;nbsp; Looks cool, I wonder what the overlay layers are and how to specify them.&amp;nbsp; Open source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh.. its a webmap, cant see anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh well, can't use sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway, that at least in the samples, everything can be manually defined?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529034#M49366</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-10-02T15:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Stop using webmaps in samples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529035#M49367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's some code that shows working with the LayerSwipe without a web map. The only difference in this sample is that we add the layers to the map manually - working with the LayerSwipe stays the same. Was there a particular option on the LayerSwipe widget that you were trying to get to work? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; require([
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/LayerSwipe",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/ArcGISDynamicMapServiceLayer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/arcgis/utils",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/array",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"
&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map, LayerSwipe, ArcGISDynamicMapServiceLayer, arcgisUtils, array 
&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap:"gray",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-96.5, 38.3],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 6
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var cities = new ArcGISDynamicMapServiceLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cities.setVisibleLayers([0]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var Hurricanes = new ArcGISDynamicMapServiceLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Hurricanes/MapServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hurricanes._div = map.root;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cities._div = map.root;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayers([Hurricanes, cities]);

&amp;nbsp;&amp;nbsp;&amp;nbsp; var swipeWidget = new LayerSwipe({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "vertical",&amp;nbsp; //Try switching to "scope" or "horizontal"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [Hurricanes]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "swipeDiv");

&amp;nbsp;&amp;nbsp;&amp;nbsp; swipeWidget.startup();&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; });


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529035#M49367</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T23:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Stop using webmaps in samples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529036#M49368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://forums.arcgis.com/threads/93857-LayerSwipe-and-Basemaps"&gt;http://forums.arcgis.com/threads/93857-LayerSwipe-and-Basemaps&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to see if i can swipe basemaps underneath operational layers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529036#M49368</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-10-02T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Stop using webmaps in samples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529037#M49369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just replied on the other thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/93857-LayerSwipe-and-Basemaps?p=333586&amp;amp;posted=1#post333586" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/93857-LayerSwipe-and-Basemaps?p=333586&amp;amp;posted=1#post333586&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529037#M49369</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-10-02T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Stop using webmaps in samples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529038#M49370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks Kelly!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-stop-using-webmaps-in-samples/m-p/529038#M49370</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-10-02T15:44:17Z</dc:date>
    </item>
  </channel>
</rss>

