Public ReadOnly Property SpatialReference As SpatialReference
public SpatialReference SpatialReference {get;}
Public ReadOnly Property SpatialReference As SpatialReference
public SpatialReference SpatialReference {get;}
{
// Note: Needs QueuedTask to run
{
//Create a point
var pt = MapPointBuilderEx.CreateMapPoint(x, y, spatialReference);
//Buffer it - for purpose of zoom
var poly = GeometryEngine.Instance.Buffer(pt, buffer_size);
//do we need to project the buffer polygon?
if (!MapView.Active.Map.SpatialReference.IsEqual(poly.SpatialReference))
{
//project the polygon
poly = GeometryEngine.Instance.Project(poly, MapView.Active.Map.SpatialReference);
}
//Zoom - add in a delay for animation effect
mapView.ZoomTo(poly, new TimeSpan(0, 0, 0, 3));
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)