Select to view content in your preferred language

Referencing a layer from geoprocessing results

171
0
2 weeks ago
MRJ1
by
Emerging Contributor

When I execute the Make Route Event Layer geoprocessing tool, I am referencing the layer once it is added to the map (GPExecuteToolFlags.AddOutputsToMap) to change some properties. I would like the layer visibility to be turned off and set the visibility min/max scale before the feature layer is actually added to the map. Since this geoprocessing tool creates a temporary layer, I'm trying to figure out how to reference it from memory ex: the geoprocessing return value just returns the name of the layer. Can someone show me how to properly reference the layer before its added to the map, if it's possible? Thanks!

var result = await Geoprocessing.ExecuteToolAsync("lr.MakeRouteEventLayer", parameters, null, null, null, executeFlags);

0 Kudos
0 Replies