I am trying to Display Object symbol layer after performing query task on feature data layer.
I have a feature layer URL which one am using for query task and then eventually this result displays on map in scene view. In this layer there is files INVERT-ELEVATION which gives value for depth of the Vertical pipes.
But i cant able to display all these pipes proportional to the field INVERT-ELEVATION.
Please feel free to ask any questions. Thanks..
if(22layer.value === 'Layer22'){
feature.symbol = {
type: "point-3d",
symbolLayers: [{
type: "object",
resource: {
primitive: "cylinder"
},
anchor: "bottom",
material: {
color: "red"
},
width: 100
}],
visualVariables: [{
type: "size",
field: "INVERTELEVATION",
axis: "height",
valueUnit: "meters"
}]
};
feature.popupTemplate = Layer22PopupTemp;
}
Rocky,
In your visualVariables you have the field name as INVERTELEVATION but in your text you say the name is INVERT-ELEVATION. Is that just a mistype?
Its just a typo.. its only INVERTELEVATION.
Rocky,
What is the field type?
You mean geometry type or layer type
geometry type= esriGeometryPoint
type = FeatureLayer
No I mean the fields data type.
{ "name": "INVERTELEVATION", "type": "esriFieldTypeDouble", "alias": "InvertElevation", "domain": null },
Rocky,
So are you trying to make the cylinders go above ground or below?
below the ground sir... with using
anchor: Top
Rocky,
So is the issue still that the INVERTELEVATION still not being used?