AnsweredAssumed Answered

Manual derivation of an Extent for points

Question asked by ywen123 on Dec 21, 2017
Latest reply on Dec 23, 2017 by rscheitlin

I'm trying to understand how the xmax, xmin, ymax, ymin values of an Extent relate to point geometries that I'm trying to derive an extent for.


Say I have a collection of geometry point objects each with an x and y value.  I was under the impression that these x and y values can be used to set the mapview extent.  


However upon further examination of the mapview's extent object, it appears the x/y values of an extent is not related to the x/y coordinates of a point.


I've done some searches but found no algorithm to derive an extent from a collection of points.


I've also tried to interrogate the FeatureLayer.fullExtent property after instantiating my points based FeatureLayer.  However the fullExtent property is null in my case. The 4.x API doc doesn't specify the value of this prop for point geometryType FeatureLayer.