<?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 FeatureLayer is not drawing geometry curvePaths in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-is-not-drawing-geometry-curvepaths/m-p/1235826#M79472</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hello,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have an issue where i have json files extracted from &lt;STRONG&gt;ESRI Feature to JSON Tool&lt;/STRONG&gt;, where i'm reading those JSON files in javascript and draw them on the MAP&lt;/P&gt;&lt;P&gt;FeatureLayers are created successfully but the ones with &lt;STRONG&gt;Geometry&amp;nbsp;curvePaths&lt;/STRONG&gt; are not shown&amp;nbsp;&lt;/P&gt;&lt;P&gt;they appear on legend but not drawn on the MAP&lt;/P&gt;&lt;P&gt;below sample json file with&amp;nbsp;curvePaths&amp;nbsp;&lt;/P&gt;&lt;P&gt;and map result i have without&amp;nbsp;&lt;SPAN&gt;PriUGElectricLineSegment drawn which has curvePaths&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i use this code to create FeatureLayer for all JSON files&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let featureElement = {
    name: "FeatureName",
    JsonText: "...JSON TEXT.....", 
    GeometryType: "polyline"
}

let lineSymbol = {
    type: 'simple-line',
    cap: 'round',
    join: 'round',
    style: 'short-dot',
    color: {
        r: 0,
        g: 0,
        b: 0,
        a: 1
    }, 
    width: '1px'
};
let lineSymbolRenderer = {
    type: "simple",  // autocasts as new SimpleRenderer()
    symbol: lineSymbol
}

let featureSetObj = FeatureSet.fromJSON(JSON.parse(featureElement.JsonText));

// Set the renderer on a layer
let layer = new FeatureLayer({
    fields: featureSetObj.fields,
    objectIdField: "ObjectID",
    geometryType: featureElement.GeometryType,
    spatialReference: {
        wkid: 3997
    },
    source: featureSetObj.features,
    renderer: lineSymbolRenderer,
    title: featureElement.Name
});
map.add(layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not able to find out the reason features with&amp;nbsp;curvePaths are not shown on the MAP&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://js.arcgis.com/4.25/" target="_blank"&gt;https://js.arcgis.com/4.25/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 29 Nov 2022 11:38:18 GMT</pubDate>
    <dc:creator>GoodMorning</dc:creator>
    <dc:date>2022-11-29T11:38:18Z</dc:date>
    <item>
      <title>FeatureLayer is not drawing geometry curvePaths</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-is-not-drawing-geometry-curvepaths/m-p/1235826#M79472</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have an issue where i have json files extracted from &lt;STRONG&gt;ESRI Feature to JSON Tool&lt;/STRONG&gt;, where i'm reading those JSON files in javascript and draw them on the MAP&lt;/P&gt;&lt;P&gt;FeatureLayers are created successfully but the ones with &lt;STRONG&gt;Geometry&amp;nbsp;curvePaths&lt;/STRONG&gt; are not shown&amp;nbsp;&lt;/P&gt;&lt;P&gt;they appear on legend but not drawn on the MAP&lt;/P&gt;&lt;P&gt;below sample json file with&amp;nbsp;curvePaths&amp;nbsp;&lt;/P&gt;&lt;P&gt;and map result i have without&amp;nbsp;&lt;SPAN&gt;PriUGElectricLineSegment drawn which has curvePaths&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i use this code to create FeatureLayer for all JSON files&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let featureElement = {
    name: "FeatureName",
    JsonText: "...JSON TEXT.....", 
    GeometryType: "polyline"
}

let lineSymbol = {
    type: 'simple-line',
    cap: 'round',
    join: 'round',
    style: 'short-dot',
    color: {
        r: 0,
        g: 0,
        b: 0,
        a: 1
    }, 
    width: '1px'
};
let lineSymbolRenderer = {
    type: "simple",  // autocasts as new SimpleRenderer()
    symbol: lineSymbol
}

let featureSetObj = FeatureSet.fromJSON(JSON.parse(featureElement.JsonText));

// Set the renderer on a layer
let layer = new FeatureLayer({
    fields: featureSetObj.fields,
    objectIdField: "ObjectID",
    geometryType: featureElement.GeometryType,
    spatialReference: {
        wkid: 3997
    },
    source: featureSetObj.features,
    renderer: lineSymbolRenderer,
    title: featureElement.Name
});
map.add(layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not able to find out the reason features with&amp;nbsp;curvePaths are not shown on the MAP&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://js.arcgis.com/4.25/" target="_blank"&gt;https://js.arcgis.com/4.25/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 11:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-is-not-drawing-geometry-curvepaths/m-p/1235826#M79472</guid>
      <dc:creator>GoodMorning</dc:creator>
      <dc:date>2022-11-29T11:38:18Z</dc:date>
    </item>
  </channel>
</rss>

