<?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 Get Layer GeometryType in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345240#M31863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Iam using DynamicMapServiceLayer in my map. I need to get the layer geometryType weather it is line or polygon or point. How can I get it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 15:18:00 GMT</pubDate>
    <dc:creator>Udaya_BhaskerCheerala</dc:creator>
    <dc:date>2012-11-26T15:18:00Z</dc:date>
    <item>
      <title>Get Layer GeometryType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345240#M31863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Iam using DynamicMapServiceLayer in my map. I need to get the layer geometryType weather it is line or polygon or point. How can I get it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 15:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345240#M31863</guid>
      <dc:creator>Udaya_BhaskerCheerala</dc:creator>
      <dc:date>2012-11-26T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get Layer GeometryType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345241#M31864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone found solutions for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345241#M31864</guid>
      <dc:creator>Udaya_BhaskerCheerala</dc:creator>
      <dc:date>2012-11-30T09:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Layer GeometryType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345242#M31865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm"&gt;ArcGISDynamicMapServiceLayer&lt;/A&gt;&lt;SPAN&gt; is used to display a map service in a JS API app and is collection of one or more layers. As a result, dynamic layers don't have a geometry type but individual layers in the map service do have a geometry type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the Census map service on one of our sample servers:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are four layers, each with a geometry type. You can get an individual layer's geometry type by sending a request to that layer's endpoint, for instance:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0?f=pjson"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0?f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a sample showing how to &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/data_requestLayerInfo.html"&gt;retrieve individual layer info&lt;/A&gt;&lt;SPAN&gt;. To get geometry type, you would use the same code shown in that sample but instead of pulling out field info, you'd pull out the layer's geometry type.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 13:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-geometrytype/m-p/345242#M31865</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-11-30T13:44:17Z</dc:date>
    </item>
  </channel>
</rss>

