<?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 Graphic.getDojoShape() does not work in js api 4.6 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331442#M30638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function&amp;nbsp;Graphic.getDojoShape()&amp;nbsp;works fine in js api 3. but it does not work in 4.6 . Is there any way to solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2018 10:15:23 GMT</pubDate>
    <dc:creator>SergeyVladimirov</dc:creator>
    <dc:date>2018-01-31T10:15:23Z</dc:date>
    <item>
      <title>Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331442#M30638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function&amp;nbsp;Graphic.getDojoShape()&amp;nbsp;works fine in js api 3. but it does not work in 4.6 . Is there any way to solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 10:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331442#M30638</guid>
      <dc:creator>SergeyVladimirov</dc:creator>
      <dc:date>2018-01-31T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331443#M30639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the &lt;A href="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html#graphic"&gt;Functionality Matrix&lt;/A&gt;, this ability isn't planned for the 4.x release&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:26:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331443#M30639</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-01-31T13:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331444#M30640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are just looking to get the swatches (like what is used in the legend) then you need to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolPreview.html"&gt;symbolPreview&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331444#M30640</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-31T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331445#M30641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i seen that.&amp;nbsp;But i used this function, and now i am not sure how to change my code to get it working .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331445#M30641</guid>
      <dc:creator>SergeyVladimirov</dc:creator>
      <dc:date>2018-01-31T15:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331446#M30642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So you are saying you do not know how to use symbolPreview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331446#M30642</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-31T17:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331447#M30643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure that symbolPreview is what i need.&amp;nbsp; All that i need is to highlight some layer with animation. For that i use "&lt;SPAN&gt;graphicFlash.getDojoShape()" because then i pass this to dojoFx;&lt;/SPAN&gt; Let me show some part of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let rLayer = this.sharedService.map.getLayer(x);&lt;BR /&gt; let items: any[] = rLayer.graphics;//.filter(x =&amp;gt; this.sharedService.map.extent.intersects(x._extent));&lt;/P&gt;&lt;P&gt;items.forEach(graphicHighlight =&amp;gt; {&lt;BR /&gt; let graphicFlash;&lt;BR /&gt; switch (graphicHighlight.geometry.type) {&lt;BR /&gt; case "point": case "esriGeometryMultipoint":&lt;BR /&gt; ..................&lt;BR /&gt; case "multipoint":&lt;BR /&gt; ............................&lt;BR /&gt; case "polyline":&lt;BR /&gt; .......................................&lt;BR /&gt; case "polygon": case "extent":&lt;BR /&gt; var symbolFlashPolygon = new this.SimpleFillSymbol(this.SimpleFillSymbol.STYLE_SOLID,&lt;BR /&gt; new this.SimpleLineSymbol(this.SimpleLineSymbol.STYLE_SOLID, new this.mapLayerService.Color([255, 0, 0]), 2),&lt;BR /&gt; new this.mapLayerService.Color([255, 0, 0, 0.25]));&lt;BR /&gt; _extent = graphicHighlight.geometry.getExtent();&lt;BR /&gt; graphicFlash = new this.Graphic(graphicHighlight.geometry, symbolFlashPolygon);&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; if (this.sharedService.map.extent.intersects(_extent)) {&lt;BR /&gt; this.sharedService.map.graphics.add(graphicFlash);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; let shape = graphicFlash.getDojoShape();&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;if (shape != null) {&lt;BR /&gt; let animStroke = this.dojoFx.animateStroke({&lt;BR /&gt; shape: shape,&lt;BR /&gt; duration: 10000,&lt;BR /&gt; color: { end: new this.mapLayerService.Color([0, 0, 0, 0]) }&lt;BR /&gt; });&lt;BR /&gt; var animFill: any;&lt;BR /&gt; if (isLine) {&lt;BR /&gt; animFill = this.dojoFx.animateTransform({&lt;BR /&gt; shape: shape,&lt;BR /&gt; duration: 1000,&lt;BR /&gt; color: { end: new this.mapLayerService.Color([0, 0, 0, 0]) }&lt;BR /&gt; // color: { start: "red", end: color }&lt;BR /&gt; });&lt;BR /&gt; } else {&lt;BR /&gt; animFill = this.dojoFx.animateFill({&lt;BR /&gt; shape: shape,&lt;BR /&gt; duration: 1000,&lt;BR /&gt; color: { end: new this.mapLayerService.Color([0, 0, 0, 0]) }&lt;BR /&gt; //color: { start: "red", end: color }&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var anim = this.coreFx.combine([animStroke, animFill]).play();&lt;BR /&gt; this.aspect.after(anim, "onEnd", function () {&lt;BR /&gt; self.sharedService.map.graphics.remove(graphicFlash); &lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 08:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331447#M30643</guid>
      <dc:creator>SergeyVladimirov</dc:creator>
      <dc:date>2018-02-01T08:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic.getDojoShape() does not work in js api 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331448#M30644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Based on the fact that&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;getDojoShape is not planed for the 4.x api I am not sure how you would be able to do that in 4.x. The symbolPreview produced a HTML element not a svg shape.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-getdojoshape-does-not-work-in-js-api-4-6/m-p/331448#M30644</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-01T13:53:26Z</dc:date>
    </item>
  </channel>
</rss>

