Query Task with 3D Scene

1321
15
11-28-2018 01:49 PM
Rocky_
by
Occasional Contributor

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;
}

0 Kudos
15 Replies
RobertScheitlin__GISP
MVP Emeritus

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?

0 Kudos
Rocky_
by
Occasional Contributor

Its just a typo.. its only INVERTELEVATION.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Rocky,

   What is the field type?

Rocky_
by
Occasional Contributor

You mean geometry type or layer type

geometry type= esriGeometryPoint

type = FeatureLayer   

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

No I mean the fields data type.

Rocky_
by
Occasional Contributor
  • INVERTELEVATION ( type: esriFieldTypeDouble , alias: InvertElevation )
  • {    "name": "INVERTELEVATION",    "type": "esriFieldTypeDouble",    "alias": "InvertElevation",    "domain": null   },
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Rocky,

  So are you trying to make the cylinders go above ground or below?

Rocky_
by
Occasional Contributor

below the ground sir... with using

anchor: Top

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Rocky,

  So is the issue still that the INVERTELEVATION still not being used?