<?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 Get Geometry Type of a Feature Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241067#M22353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;FeatureLayer.geometryType &lt;/PRE&gt;&lt;SPAN&gt; should work but if that doesn't work also then when the layer get added to map you can get geometry type of feature layer .Suppose the feature layer Id is &lt;/SPAN&gt;&lt;STRONG&gt; Layer1 &lt;/STRONG&gt;&lt;SPAN&gt; then use this &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map._layers["Layer1"].geometryType&lt;/PRE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manojraj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 04:20:46 GMT</pubDate>
    <dc:creator>ManojrajTeli</dc:creator>
    <dc:date>2013-11-21T04:20:46Z</dc:date>
    <item>
      <title>How to Get Geometry Type of a Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241066#M22352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a feature layer and tried to get the geometry type of that layer. But this doesn't work. I need this to define a selection symbol depending on the geometry type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;featureLayer = new esri.layers.FeatureLayer(layerListArray[0], layerOptions);

featureLayer.geometryType; (This doesn't work)

featureLayer.setSelectionSymbol(markerSymbol);
map.addLayer(featureLayer);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Need a help...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241066#M22352</guid>
      <dc:creator>Nadeera_RukshanMemmenda_Arachc</dc:creator>
      <dc:date>2021-12-12T16:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get Geometry Type of a Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241067#M22353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;FeatureLayer.geometryType &lt;/PRE&gt;&lt;SPAN&gt; should work but if that doesn't work also then when the layer get added to map you can get geometry type of feature layer .Suppose the feature layer Id is &lt;/SPAN&gt;&lt;STRONG&gt; Layer1 &lt;/STRONG&gt;&lt;SPAN&gt; then use this &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map._layers["Layer1"].geometryType&lt;/PRE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manojraj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241067#M22353</guid>
      <dc:creator>ManojrajTeli</dc:creator>
      <dc:date>2013-11-21T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get Geometry Type of a Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241068#M22354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. Now I understood that, map should be fully loaded to get the geometry type of a layer. So, when i call FeatureLayer.geometryType inside layer-add-result event. it works fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-type-of-a-feature-layer/m-p/241068#M22354</guid>
      <dc:creator>Nadeera_RukshanMemmenda_Arachc</dc:creator>
      <dc:date>2013-11-21T04:52:44Z</dc:date>
    </item>
  </channel>
</rss>

