<?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: (evt.graphic.symbol.color) what is false here? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707590#M65837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When your onClick fires, check to make sure the object that gets passed to your handler has a property name graphic, that graphic has a property named symbol and that symbol has a property named color. The easiest/best way to do this is with &lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty"&gt;hasOwnProperty&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending how your app is set up, it might be better to put your onClick handler directly on your graphicsLayer rather than on your map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2012 15:44:41 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-02-03T15:44:41Z</dc:date>
    <item>
      <title>(evt.graphic.symbol.color) what is false here?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707588#M65835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use this event.graphic color in a new Style. The next code still not working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function Highlight(evt){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evt.graphic.setSymbol(new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, outline, evt.graphic.symbol.color));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have anyone an Idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 17:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707588#M65835</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-02T17:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: (evt.graphic.symbol.color) what is false here?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707589#M65836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;let me reiterate what my problem is: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the error that symbol is undefined in esri.graphic.symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(map, 'onClick', Hilight);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and in function Hilight()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var thiscolor = evt.graphic.symbol.color;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const outline = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;evt.graphic.setSymbol(new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, outline, thiscolor));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my question is: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;why does evt.graphic contain an undefined value for symbol?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it is supposed to get the graphic object from the server and it is showing the color of the object when drawing the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to get the color of the object!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone suggest how I can get the color of the object that I clicked?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 11:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707589#M65836</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-03T11:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: (evt.graphic.symbol.color) what is false here?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707590#M65837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When your onClick fires, check to make sure the object that gets passed to your handler has a property name graphic, that graphic has a property named symbol and that symbol has a property named color. The easiest/best way to do this is with &lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/HasOwnProperty"&gt;hasOwnProperty&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending how your app is set up, it might be better to put your onClick handler directly on your graphicsLayer rather than on your map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707590#M65837</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-03T15:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: (evt.graphic.symbol.color) what is false here?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707591#M65838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi swingley,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for this answer, I found a solution to this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem: The event information content a esri.Graphic with an undefined symbol property (attributes, geometry and others are defined).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im not shure if its normal for other map configurations, its only not confortable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var actualColor = event.graphic.getDojoShape().getFill();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;actualColor is a dojo.Color object, its enough for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your support,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707591#M65838</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-03T15:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: (evt.graphic.symbol.color) what is false here?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707592#M65839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you found a solution!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 16:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707592#M65839</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-03T16:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: (evt.graphic.symbol.color) what is false here?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707593#M65840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;graphic.getDojoShape() works not with QUERYRESULTS.features[0] Graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var queryTask = new esri.tasks.QueryTask("..................");
var query = new esri.tasks.Query();

query.where = "....................";
query.returnGeometry = true;

queryTask.execute(query, functionX);

function funcitonX(QUERYRESULTS) {
&amp;nbsp; shape = QUERYRESULTS.features[0].getDojoShape(); //here hangs up!
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your Help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/evt-graphic-symbol-color-what-is-false-here/m-p/707593#M65840</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2021-12-12T05:43:44Z</dc:date>
    </item>
  </channel>
</rss>

