<?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 window.map versus map - Please explain difference in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142312#M13271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ESRI Javascript example below uses Window.grid and Window.map.&lt;/P&gt;&lt;P&gt;They makes a New Map with Window.map and add layers to it with map.addlayer.&lt;/P&gt;&lt;P&gt;Confusing...at least for me. Dojo must be involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/fl_dgrid.html" title="https://developers.arcgis.com/javascript/jssamples/fl_dgrid.html"&gt;dgrid | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 18:47:10 GMT</pubDate>
    <dc:creator>KeithAnderson</dc:creator>
    <dc:date>2015-01-29T18:47:10Z</dc:date>
    <item>
      <title>window.map versus map - Please explain difference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142312#M13271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ESRI Javascript example below uses Window.grid and Window.map.&lt;/P&gt;&lt;P&gt;They makes a New Map with Window.map and add layers to it with map.addlayer.&lt;/P&gt;&lt;P&gt;Confusing...at least for me. Dojo must be involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/fl_dgrid.html" title="https://developers.arcgis.com/javascript/jssamples/fl_dgrid.html"&gt;dgrid | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 18:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142312#M13271</guid>
      <dc:creator>KeithAnderson</dc:creator>
      <dc:date>2015-01-29T18:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: window.map versus map - Please explain difference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142313#M13272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the samples where you see the window.map or window.[some variable name] the developer is just writing the sample so that the variable is globally accessible.&amp;nbsp; Basically its attaching the map variable to the window object so you can access it throughout your application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a link to an article with some more detail: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://snook.ca/archives/javascript/global_variable" title="http://snook.ca/archives/javascript/global_variable"&gt;Global Variables in JavaScript - Snook.ca&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And additional reading on global variables in general and why you may want to minimize the use of global variables in your app. See the 'Variable Declarations' section. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://javascript.crockford.com/code.html" title="http://javascript.crockford.com/code.html"&gt;Code Conventions for the JavaScript Programming Language&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 19:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142313#M13272</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-01-29T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: window.map versus map - Please explain difference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142314#M13273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kelly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 19:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-map-versus-map-please-explain-difference/m-p/142314#M13273</guid>
      <dc:creator>KeithAnderson</dc:creator>
      <dc:date>2015-01-29T19:11:54Z</dc:date>
    </item>
  </channel>
</rss>

