<?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: Does a new graphic need all 4 parameters or not? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-a-new-graphic-need-all-4-parameters-or-not/m-p/542159#M50487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;None are required.&amp;nbsp; Of course without geometry and a symbol the graphic will not show in the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said that, if you are creating graphics from a query, identify, etc, you should set attributes and info template.&amp;nbsp; Without them graphics don't have much functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphics for display only, for example a polygon for selecting other features, do not need attributes or info template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The measure widget example &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/widget_measurement/"&gt;http://developers.arcgis.com/en/javascript/samples/widget_measurement/&lt;/A&gt;&lt;SPAN&gt; illustrates this. Measure in the map, find the graphic's DOM object using firebug &lt;/SPAN&gt;&lt;STRONG&gt;map._layers.map_graphics.graphics[0]&lt;/STRONG&gt;&lt;SPAN&gt; and check for attributes &lt;/SPAN&gt;&lt;STRONG&gt;map._layers.map_graphics.graphics[0].attributes&lt;/STRONG&gt;&lt;SPAN&gt; and info template &lt;/SPAN&gt;&lt;STRONG&gt;map._layers.map_graphics.graphics[0].infoTemplate&lt;/STRONG&gt;&lt;SPAN&gt;. Both are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;undefined&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 17:31:55 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2013-04-30T17:31:55Z</dc:date>
    <item>
      <title>Does a new graphic need all 4 parameters or not?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-a-new-graphic-need-all-4-parameters-or-not/m-p/542158#M50486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The documentation for a new graphic states "Creates a new Graphic object. All parameters are required and must be specified in the order given." &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/graphic.html#GraphicConst1"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/graphic.html#GraphicConst1&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but under the concepts section on graphics there is this statement "Graphics are not required to have all of the above items, and no one item is required. " &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/inside_graphics.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/inside_graphics.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a discrepancy in the documentation or is there a real difference that I'm not seeing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-a-new-graphic-need-all-4-parameters-or-not/m-p/542158#M50486</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2013-04-30T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does a new graphic need all 4 parameters or not?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-a-new-graphic-need-all-4-parameters-or-not/m-p/542159#M50487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;None are required.&amp;nbsp; Of course without geometry and a symbol the graphic will not show in the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said that, if you are creating graphics from a query, identify, etc, you should set attributes and info template.&amp;nbsp; Without them graphics don't have much functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphics for display only, for example a polygon for selecting other features, do not need attributes or info template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The measure widget example &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/widget_measurement/"&gt;http://developers.arcgis.com/en/javascript/samples/widget_measurement/&lt;/A&gt;&lt;SPAN&gt; illustrates this. Measure in the map, find the graphic's DOM object using firebug &lt;/SPAN&gt;&lt;STRONG&gt;map._layers.map_graphics.graphics[0]&lt;/STRONG&gt;&lt;SPAN&gt; and check for attributes &lt;/SPAN&gt;&lt;STRONG&gt;map._layers.map_graphics.graphics[0].attributes&lt;/STRONG&gt;&lt;SPAN&gt; and info template &lt;/SPAN&gt;&lt;STRONG&gt;map._layers.map_graphics.graphics[0].infoTemplate&lt;/STRONG&gt;&lt;SPAN&gt;. Both are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;undefined&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-a-new-graphic-need-all-4-parameters-or-not/m-p/542159#M50487</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2013-04-30T17:31:55Z</dc:date>
    </item>
  </channel>
</rss>

