<?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: Getting a reference to a map object with dojo.byId in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607749#M56845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We don't keep a reference to the map as a global variable anywhere. If you want to interact with your map at runtime via your browser's dev tools, make your map variable global. This is why we make the map a global var in most of our samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you found out, dojo.byId returns references to dom nodes. Dijit.byId returns references to dijits but esri.Map is not a dijit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 18:44:29 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-11-29T18:44:29Z</dc:date>
    <item>
      <title>Getting a reference to a map object with dojo.byId</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607747#M56843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was wondering if there is a method to get a reference to the map object without having to have a global variable for the map. If you do: var x = dojo.byId("map") x is a reference to the DIV that contains the map but I don't know how to pull the map out of that, or if I should even be trying to reference the map in this way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 15:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607747#M56843</guid>
      <dc:creator>JosephCox</dc:creator>
      <dc:date>2012-11-29T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a reference to a map object with dojo.byId</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607748#M56844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm by no means a dojo expert but I don't believe it is possible to get the JavaScript object from the HTML element. The JavaScript map object contains a link to the HTML element that the map is in but the reverse is not true. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've always just used a global variable called map in order to access it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 17:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607748#M56844</guid>
      <dc:creator>MattO_Hara</dc:creator>
      <dc:date>2012-11-29T17:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a reference to a map object with dojo.byId</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607749#M56845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We don't keep a reference to the map as a global variable anywhere. If you want to interact with your map at runtime via your browser's dev tools, make your map variable global. This is why we make the map a global var in most of our samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you found out, dojo.byId returns references to dom nodes. Dijit.byId returns references to dijits but esri.Map is not a dijit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 18:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-reference-to-a-map-object-with-dojo-byid/m-p/607749#M56845</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-11-29T18:44:29Z</dc:date>
    </item>
  </channel>
</rss>

