Hello,
i have an issue where i have json files extracted from ESRI Feature to JSON Tool, where i'm reading those JSON files in javascript and draw them on the MAP
FeatureLayers are created successfully but the ones with Geometry curvePaths are not shown
they appear on legend but not drawn on the MAP
below sample json file with curvePaths
and map result i have without PriUGElectricLineSegment drawn which has curvePaths
i use this code to create FeatureLayer for all JSON files
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);
i'm not able to find out the reason features with curvePaths are not shown on the MAP