Zone Lookup

60
0
yesterday
Brian_McLeer
MVP Regular Contributor
2 0 60

A custom widget for ArcGIS Experience Builder. A resident enters an address, the widget returns which polygon zone the address falls in, then renders a configurable template populated with that zone's fields.

Workflow is generic: address in, polygon match out, template populated with matched zone attributes. Possible use cases include council districts, polling places, school boundaries, snow routes, code enforcement zones, leaf pickup areas, garbage day, or anything point-in-polygon.

Configurable via the settings panel or XML import/export.

Repo: https://github.com/brianmcleer/zone-lookup-widget

A couple notes:

The spatial query does an exact intersect first, then a 30m buffered retry if nothing hits. Helps with geocoders that return points slightly off the parcel.

There's an "Optimize for iframe" toggle in settings that makes the widget fill its parent height. Useful when the host page sets a fixed iframe height. Same widget works in regular EB layouts without the toggle.

XML config import/export round-trips most settings (template, labels, brand colors, feature toggles, and so on). The zone layer data source itself does not, since EB stores it as an app-specific UUID rather than a URL. Re-link the layer after import.

(view in My Videos)

Contributors
About the Author
GIS Administrator/Developer at City of Grand Junction, CO.