Set map extent
I'm relatively new to workflows. I have a workflow that is launched from the I want to menu and very simply toggles all the layers off and then toggles two other layers of interest on- no query task or anything like that.
My question is how do I set the extent of the map to either a) the extent of the layers that are toggled on or b) hardcode a bounding box of coordinates? For the latter, I have tried adding the "Set Map extent" under common client, but all it asks is a variable, and I'm not sure where to enter an xmin, xmax, etc. This must be pretty simple right?
0
-
Andrew, one solution is to set bookmarks to each of these extents. After doing so, you can insert a RunExternalCommand to your workflow with Command Name set to "ZoomToNamedExtent" in quotes like that, and Command Parameter simply the name of the bookmark, also in quotes. I use this technique in a workflow that sets initial map extent by user name. 0 -
With Set Map Extent, you can get the variable you need for it from a GetFeatureSetExtent of a query result. But since you said you have no query, I think the bookmarks I mentioned might be the easiest solution in your case. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare