PROBLEM
Published map services result in NaN, 'Not a Number' as the FullExtent property. For example, the initial full extent is as follows:
XMin: -1.2517040322409505E7 YMin: 3946983.752765715 XMax: -1.2444192662924586E7 YMax: 3999198.926415506 Spatial Reference: 102100 (3857)And the resulting full extent after publishing is displayed as follows:
XMin: NaN YMin: NaN XMax: NaN YMax: NaN Spatial Reference: 102100 (3857)
The issue is caused by corrupted data or an incomplete publishing process.
Use one of the following workaround to resolve the issue:
var table = await ShapefileTable.OpenAsync(@"C:\Users\jenn6286\Downloads\states_21basic\states.shp"); var features = await table.QueryAsync(new QueryFilter(){WhereClause= "1=1"}); if (features != null) { Envelope fullExtent = GeometryEngine.Union(from f in features where f.Geometry != null select f.Geometry).Extent; }
Article ID: 000018637
Get help from ArcGIS experts
Download the Esri Support App