Run External Command "ZoomToScale" not working as expected with points
Hello all,
This really should be easy, but it doesn't seem to work correctly. This is in a workflow.
Essentially, I want the map to pan to the address or addresses found (which will always be somewhat clustered because may show multiple points where there are multiple units) and then Zoom in or out to 1:9000 scale (one of cached scales).
I have no problem zooming to the extent of the envelope of features whether it is a single point or multiple points.
The problem is when I just want to Pan to the location and then zoom out to a specific scale.
Steps followed in workflow:
- Select Features to return feature set
- Use GetFeatureSetExtent to return extent
- Use External Command "ZoomToExtent" to zoom to the extent found in #2
- (I notice if I use "GetMapInfo" to determine the scale at this point, it is NOT as the scale should be after #3)
- Use External Command "ZoomToScale" set to "9000"
BUT - if I put an Alert just before the ZoomToScale. It works as expected.
I just want to zoom to 9000 with my feature set in the middle! Am I missing something obvious?
(I saw PanToFeatures, but wasn't sure how to get a "geocortex array of features", but even then, I am not sure the ZoomToScale would work after that either).
If this sounds like a bug, please let me know and I will submit.
Thanks,
carmen
0
-
Hi Carmen,
It sounds like the viewer is having issues carrying out two different zoom commands simultaneously or near-simultaneously. If this is the case, the Alert activity makes it work as expected because it's causing a delay between the two commands. You could potentially add an ExternalDelay activity to achieve the same effect without disrupting the end-users. Another option would be to find a way to modify the workflow to use only one zoom command (eg, modify the extent as needed before using the ZoomToExtent command).
Hope that helps,
Amanda0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar