<?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: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320771#M29530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;thanks, I'll try with this method... then I'll tell you..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added the graphic to a map grapchicLayer, but i'm still not found the way to add this layer as a new layer item visible in TOC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 May 2013 17:42:19 GMT</pubDate>
    <dc:creator>Gerardo_AngelMac_Gaul</dc:creator>
    <dc:date>2013-05-07T17:42:19Z</dc:date>
    <item>
      <title>HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320768#M29527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi! I draw graphics in the map using de Draw Toolbar. How can i add these as layers in the agsjs toc? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The part of the code tah add the grapchic is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;"....&lt;BR /&gt;var graphic = new esri.Graphic(geometry, symbol);&lt;BR /&gt;map.graphics.add(graphic);&lt;BR /&gt;...."&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 19:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320768#M29527</guid>
      <dc:creator>Gerardo_AngelMac_Gaul</dc:creator>
      <dc:date>2013-05-03T19:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320769#M29528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;var graphic = new esri.Graphic(geometry, symbol);&lt;BR /&gt;map.graphics.add(graphic);&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the very least, I suspect you'll need to add that graphic to a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/graphicslayer.html"&gt;graphicsLayer&lt;/A&gt;&lt;SPAN&gt; rather than the map itself. That way you'll have access to the whole layer of graphics, which you may be able to hook up to the agsjs TOC. I haven't used that myself so I'm not sure how, but hopefully this will give you some pointers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 05:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320769#M29528</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-05-07T05:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320770#M29529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;At the very least, I suspect you'll need to add that graphic to a &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/graphicslayer.html"&gt;graphicsLayer&lt;/A&gt; rather than the map itself. That way you'll have access to the whole layer of graphics, which you may be able to hook up to the agsjs TOC. I haven't used that myself so I'm not sure how, but hopefully this will give you some pointers.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, I'll try with this method... then I'll tell you..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 11:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320770#M29529</guid>
      <dc:creator>Gerardo_AngelMac_Gaul</dc:creator>
      <dc:date>2013-05-07T11:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320771#M29530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;thanks, I'll try with this method... then I'll tell you..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added the graphic to a map grapchicLayer, but i'm still not found the way to add this layer as a new layer item visible in TOC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 17:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320771#M29530</guid>
      <dc:creator>Gerardo_AngelMac_Gaul</dc:creator>
      <dc:date>2013-05-07T17:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320772#M29531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried by creating the blank graphicslayer and then calling the map.addlayers function to add your map service layer and graphics layers. And then initializing the TOC on onLayersAddResult event and passing the graphics layer in layer infos.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vinay Bansal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 05:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320772#M29531</guid>
      <dc:creator>VinayBansal</dc:creator>
      <dc:date>2013-05-08T05:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320773#M29532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried by creating the blank graphicslayer and then calling the map.addlayers function to add your map service layer and graphics layers. And then initializing the TOC on onLayersAddResult event and passing the graphics layer in layer infos.&lt;BR /&gt;&lt;BR /&gt;Vinay Bansal&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks! I'm studying this method....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 17:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320773#M29532</guid>
      <dc:creator>Gerardo_AngelMac_Gaul</dc:creator>
      <dc:date>2013-05-08T17:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320774#M29533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! I'm studying this method....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; Hi! I created the TOC, and I've added the graphiclayer array, but only i see in TOC the parent name. The array show me the length of childrens, but I don't see the childrens in the toc, under the parent. What have I missed? Some sample code to do this? Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 14:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320774#M29533</guid>
      <dc:creator>Gerardo_AngelMac_Gaul</dc:creator>
      <dc:date>2013-05-21T14:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO ADD A GRAPHIC IN MAP  AS A LAYER IN AGSJS TOC?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320775#M29534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;GraphicsLayer is not supported. Do not have time to added it any time soon. If someone wants to give a shot you are welcomed to do so. Basically you need to use esri.symbol.getShapeDescriptors() to get graphics context and use dojo's graphics library to draw the symbol in a node of TOC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 15:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-graphic-in-map-nbsp-as-a-layer-in/m-p/320775#M29534</guid>
      <dc:creator>NianweiLiu</dc:creator>
      <dc:date>2013-05-21T15:28:12Z</dc:date>
    </item>
  </channel>
</rss>

