Skip to content
GuidesToolkitAPI

UtilityNetworkTrace

UtilityNetworkTrace(__namedParameters): Element

Defined in: packages/expo-arcgis-toolkit/src/UtilityNetworkTrace.tsx:56

The ArcGIS Toolkit’s utility network trace: for a map view showing a web map with utility networks, it runs their named trace configurations. The user picks a configuration, adds starting points by tapping the map, and traces. Starting points and results are drawn into the app’s overlay, and several traces can be compared. A panel: place it inside the <MapView> and lay it out over the map, or anywhere else with the view’s ref as geoView.

const overlay = useRef<GraphicsOverlayRef>(null);
const [mapPoint, setMapPoint] = useState<Point | null>(null);
<MapView style={{ flex: 1 }} onTap={(e) => setMapPoint(e.nativeEvent.mapPoint)}>
<GraphicsOverlay ref={overlay} />
<UtilityNetworkTrace graphicsOverlay={overlay} mapPoint={mapPoint} style={styles.panel} />
</MapView>

UtilityNetworkTraceProps

Element