<?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 Map and MapView autocast in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071253#M73589</link>
    <description>&lt;P&gt;On the documentation it's written that the Map class is autocasted for MapView class.&lt;/P&gt;&lt;P&gt;However, when Map module isn't imported in the beginning of the code with "esri/map", it doesn't seem to work. Am I misunderstanding how autocast works or is this a bug?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 22:01:11 GMT</pubDate>
    <dc:creator>Shimoorook</dc:creator>
    <dc:date>2021-06-22T22:01:11Z</dc:date>
    <item>
      <title>Map and MapView autocast</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071253#M73589</link>
      <description>&lt;P&gt;On the documentation it's written that the Map class is autocasted for MapView class.&lt;/P&gt;&lt;P&gt;However, when Map module isn't imported in the beginning of the code with "esri/map", it doesn't seem to work. Am I misunderstanding how autocast works or is this a bug?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071253#M73589</guid>
      <dc:creator>Shimoorook</dc:creator>
      <dc:date>2021-06-22T22:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Map and MapView autocast</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071260#M73590</link>
      <description>&lt;P&gt;Is there a particular way you're trying to create the map that doesn't work? I tried this basic example and the map works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require(["esri/views/MapView"], (MapView) =&amp;gt; {
  const view = new MapView({
    container: "viewDiv",
    map: {
      basemap: "topo-vector"
    },
    zoom: 4,
    center: [15, 65]
  });
});&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071260#M73590</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-06-22T22:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Map and MapView autocast</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071262#M73591</link>
      <description>&lt;P&gt;Oh my bad..&lt;BR /&gt;My code was like below&lt;/P&gt;&lt;P&gt;require(["esri/view/MapView"], (MapView) =&amp;gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; cost view = new MapView({&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; container: "viewDiv",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; map: new Map({&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; basemap: "topo-vector"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; zoom: 4,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; center: [15, 65]&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so when it's autocasted, there's no need to crate a new instance of the class and just provide the object with correct properties?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:11:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071262#M73591</guid>
      <dc:creator>Shimoorook</dc:creator>
      <dc:date>2021-06-22T22:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map and MapView autocast</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071279#M73592</link>
      <description>&lt;P&gt;That is correct. In some cases you need to provide a "type", like for renderers, symbols, geometry, etc. Those cases should be in the doc .&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-and-mapview-autocast/m-p/1071279#M73592</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-06-22T22:50:41Z</dc:date>
    </item>
  </channel>
</rss>

