<?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 Display map graphic in new window using getDojoShape in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-map-graphic-in-new-window-using/m-p/18236#M1697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an HTML page function receiving a graphic in JSON format. The page has a div to hold the graphic's shape, and another div to hold the graphic's infoTemplate content. Here's the code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function displayAttributeInfo(graphicJson){
&amp;nbsp; var theGraphic = new esri.Graphic(graphicJson);
&amp;nbsp; var theSurface = new dojox.gfx.createSurface("graphicSurface", 20, 20);
&amp;nbsp; var theShape = theGraphic.getDojoShape();
&amp;nbsp; theSurface.add(theShape);
&amp;nbsp; $("#attributeContent").html(theGraphic.getContent());
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Firebug I see the creation of the surface, but "getDojoShape" is causing an error in the "init.js" script: "TypeError: _a7 is null". I also see that when the graphic is created, its graphics layer and shape are null. Does the graphic need to be added to a graphics layer before the shape becomes valid? Or am I going about this the wrong way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 16:50:21 GMT</pubDate>
    <dc:creator>TyroneLigon</dc:creator>
    <dc:date>2013-07-08T16:50:21Z</dc:date>
    <item>
      <title>Display map graphic in new window using getDojoShape</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-map-graphic-in-new-window-using/m-p/18236#M1697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an HTML page function receiving a graphic in JSON format. The page has a div to hold the graphic's shape, and another div to hold the graphic's infoTemplate content. Here's the code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function displayAttributeInfo(graphicJson){
&amp;nbsp; var theGraphic = new esri.Graphic(graphicJson);
&amp;nbsp; var theSurface = new dojox.gfx.createSurface("graphicSurface", 20, 20);
&amp;nbsp; var theShape = theGraphic.getDojoShape();
&amp;nbsp; theSurface.add(theShape);
&amp;nbsp; $("#attributeContent").html(theGraphic.getContent());
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Firebug I see the creation of the surface, but "getDojoShape" is causing an error in the "init.js" script: "TypeError: _a7 is null". I also see that when the graphic is created, its graphics layer and shape are null. Does the graphic need to be added to a graphics layer before the shape becomes valid? Or am I going about this the wrong way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-map-graphic-in-new-window-using/m-p/18236#M1697</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2013-07-08T16:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Display map graphic in new window using getDojoShape</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-map-graphic-in-new-window-using/m-p/18237#M1698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Resolved this by using the dojox.gfx library and creating shapes on the fly, using the parameters (color, size, outline, image URL, etc.) from the incoming graphic's symbol.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 18:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-map-graphic-in-new-window-using/m-p/18237#M1698</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2013-07-18T18:14:22Z</dc:date>
    </item>
  </channel>
</rss>

