Sketch Query

Use the Sketch Widget to draw a polygon, and the area of the polygon will be used for an intersection query against a Parcel Layer. Click on the rendered parcels to see a popup.

This sample currently uses code from our GeoBlazor Pro extensions library.
For more information about licensing these advanced features, contact info@dymaptic.com.

About this sample

This GeoBlazor Pro sample, written in Blazor for .NET developers, demonstrates spatial intersection queries driven by user sketches from the ArcGIS Maps SDK for JavaScript exposed through GeoBlazor Pro's SketchWidget and the MapView.QueryFeatures convenience method together with a FeatureLayer of LA County parcels. The page shows a 2D mid-century-themed basemap centered on the Santa Monica Mountains. A SketchWidget pinned in the upper-right corner lets the user draw and reshape a polygon on top of an empty GraphicsLayer. Whenever a sketch completes or is updated, the sample sets the polygon as the geometry on a Query whose spatial relationship is Intersects, runs it against the parcels FeatureLayer, and renders the matching parcels with a translucent blue fill symbol. Clicking any rendered parcel opens a popup showing its APN, use type, land value, and tax-rate city. The sample is intended to demonstrate spatial selection of an external feature service driven by free-form sketches.

🚧 Heads up: Some samples are currently offline due to a token issue with ArcGIS. We are working with ESRI to resolve.