<?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: new Map() versus arcgisUtils.createMap() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331455#M30646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arcgis.Utils.createmap takes a third options parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks a little odd at first, but you can do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var mapOptions = {&amp;nbsp; basemap: "topo",&amp;nbsp; autoResize: false, // see http://forums.arcgis.com/threads/90825-Mobile-Sample-Fail&amp;nbsp; center: [-71.7, 42.35],&amp;nbsp; zoom: 8,&amp;nbsp; minZoom: 7,&amp;nbsp; logo: false,&amp;nbsp; slider: true,&amp;nbsp; sliderStyle: "small" }); arcgisUtils.createMap(webmapid, "mapDiv", { mapOptions: mapOptions }).then(function (response) {map = response.map;});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should do what you're looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 13:08:32 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2014-04-03T13:08:32Z</dc:date>
    <item>
      <title>new Map() versus arcgisUtils.createMap()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331454#M30645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a pretty basic question, but I haven't been able to find an answer after much searching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a map in my custom Javascript API application from an ArcGIS.com web map. I have tried the following methods:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcgisUtils.createMap(webmapid, "mapDiv").then(function (response) {map = response.map;});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;map = new Map("mapDiv", {&amp;nbsp; basemap: "topo",&amp;nbsp; autoResize: false, // see http://forums.arcgis.com/threads/90825-Mobile-Sample-Fail&amp;nbsp; center: [-71.7, 42.35],&amp;nbsp; zoom: 8,&amp;nbsp; minZoom: 7,&amp;nbsp; logo: false,&amp;nbsp; slider: true,&amp;nbsp; sliderStyle: "small" });&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first one creates a map using my ArcGIS.com web map. The second one creates an empty map (basemap only) with a bunch of attributes I need (autoResize:false to deal with a map resize bug, etc). I want to do &lt;/SPAN&gt;&lt;STRONG&gt;both &lt;/STRONG&gt;&lt;SPAN&gt;- use my webmap and assign all those attributes to the map. How can I do this? Why are there two ways to create a map?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331454#M30645</guid>
      <dc:creator>DavidKimball1</dc:creator>
      <dc:date>2014-04-03T12:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: new Map() versus arcgisUtils.createMap()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331455#M30646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arcgis.Utils.createmap takes a third options parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks a little odd at first, but you can do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var mapOptions = {&amp;nbsp; basemap: "topo",&amp;nbsp; autoResize: false, // see http://forums.arcgis.com/threads/90825-Mobile-Sample-Fail&amp;nbsp; center: [-71.7, 42.35],&amp;nbsp; zoom: 8,&amp;nbsp; minZoom: 7,&amp;nbsp; logo: false,&amp;nbsp; slider: true,&amp;nbsp; sliderStyle: "small" }); arcgisUtils.createMap(webmapid, "mapDiv", { mapOptions: mapOptions }).then(function (response) {map = response.map;});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should do what you're looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331455#M30646</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-04-03T13:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: new Map() versus arcgisUtils.createMap()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331456#M30647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, it works! Thanks! Not sure how I missed that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-map-versus-arcgisutils-createmap/m-p/331456#M30647</guid>
      <dc:creator>DavidKimball1</dc:creator>
      <dc:date>2014-04-03T15:49:54Z</dc:date>
    </item>
  </channel>
</rss>

