Skip to content

kjohnsonGIS/cmv_networkTraceWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

cmv_networkTraceWidget

Widget for CMV that utilizes nicogis's awesome SOE: https://github.com/nicogis/Geometric-Network-Utility-SOE

To use the widget you can make a config like below in the viewer.js.. you also have to have a 1) geometric network in your gis 2) the above SOE installed in AGS and enabled on a map service that has your network layers in it. 3) you have @tmcgee's attribute table widget installed

valvetrace: {
    include: true,
    id: 'valvetrace',
    type: 'titlePane',
    canFloat: true,
    position: 24,
    path: 'gis/dijit/Widgets/ValveTrace',
    title: 'Valve Isolation Trace',
    iconClass: 'fa fa-chain-broken',             
    options: {
        map: true,
        mapClickMode: true,
        url: 'http://yourserver/arcgis/rest/services/DistributionGeometricNetworkTrace/MapServer/exts/GeometricNetworkUtility/GeometricNetworks/1/', 
        stationLayerId: 8, 
        valveLayerId: 3, 
        networkFCcount: 19,
        flowElements: 'esriFEJunctionsAndEdges', 
        outFields:'FACILITYID,wService,WSCID', 
        maxTracedFeatures: 10200, 
        tolerance: 12, 
        flowMethod: 'esriFMConnected',
        traceIndeterminateFlow: true,
        traceSolverType:'FindFlowElements',
        relatedInfo: {
            sourceFeature: 'wService', 
            sourceKeyField: 'FACILITYID',
            relatedqueryURL: 'http://yourserver/arcgis/rest/services/DistributionGeometricNetworkTrace/MapServer/18',
            relatedOutFields: ['OBJECTID', 'SERVICE_ID','CONCAT_ADDRESS'], 
            relatedForeignkey: 'WSCID',
            relatedtitle: 'Related Features',
            relatedOID: 'OBJECTID'
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published