Calculate Geometries

Use the buttons in the top right to see a demonstration of drawing a buffer around a point, finding the intersection between two graphics, and finding the union of two polygons.

About this sample

This GeoBlazor sample, written in Blazor for .NET developers, demonstrates client-side geometry operations powered by the ArcGIS Maps SDK for JavaScript GeometryEngine, exposed through GeoBlazor's injectable GeometryEngine service. The page shows a 2D Charted Territory basemap zoomed in over the Santa Monica Mountains in southern California, with a purple Point, a purple Polyline, and a translucent purple Polygon already drawn as Graphics on a GraphicsLayer. A small CustomOverlay panel in the upper-right corner of the map contains four buttons: Buffer (calls GeometryEngine.GeodesicBuffer to draw a 1-kilometer buffer ring around the point), Intersect (calls GeometryEngine.Intersect to compute and draw the overlap between the polygon and the buffer using a hatched white fill), Union (calls GeometryEngine.Union to draw the merged polygon), and Reset (clears the buffer and any result graphic). Results are drawn into a separate GraphicsLayer so they can be cleared independently. The sample is intended to demonstrate calling spatial-analysis operations directly from C# in a Blazor application without writing JavaScript.