zoom to entire layer?
I've found lots of examples of how to zoom to selected features, but I'm just wondering how to zoom to an entire layer. I suppose it's just a matter of assigning a featureset variable to a given layer in a map service, but I'm not about the syntax for that. Is there a good resource to find syntax for this kind o fthing? I usually find that I can piece together the logic, but the VB syntax is a mystery for the arcobjects.
thanks
0
-
Use a query task with a where clause 1=1 and a get feature set extent on the resulting featureset, and a set map extent on the resulting envelope.
Perhaps an alternative is to get the value of the Extent property with the Get Layer property activity.
https://docs.geocortex.com/essentials/workflow/4.9/help/Default.htm#wf/help/wf_A_GetLayerProperty.htm
There is also a ZoomToLayerExtent viewer command, but I do not know if it can be used with a Run External command activity, because it needs a Layer as the parameter.
https://docs.geocortex.com/essentials/gvh/2.10/commands-help/#/commands/Navigation/ZoomToLayerExtent0
Please sign in to leave a comment.
Comments
1 comment