AnsweredAssumed Answered

Get Geometry -- easy points for forum pros

Question asked by jamesfreddyc on May 21, 2018
Latest reply on May 21, 2018 by jamesfreddyc

I'm setting up a new FeatureLayer with a definitionExpression applied (it will always have only 1 feature at that point) and I need to simply get that geometry later on.

 

createWorkplanBoundaryLayer: function(){
this.workplanBoundaryLayer = new FeatureLayer(this.config.workplanBoundaryLayer);
//debugger;
if (this.workplanId) {
var singleWhere = "WORKPLANID='" + this.workplanId + "'";
this.workplanBoundaryLayer.setDefinitionExpression(singleWhere)
}
},

 

What's the best way to get the geometry for this.workplanBoundaryLayer above?

 

Thanks!

Outcomes