Revisiting a "ZoomToSelected" thread started in the Silverlight forum
A while ago there was a thread in the Silverlight Forum discussing how to implement a workflow that zooms to a selected feature. (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&id=906600000000AbUAAU) ZoomToSelected
Colin and Jonathon each submitted sample workflows. I've used each as the starting point for workflows and have a couple of observations and questions.
The (http://support.geocortex.com/Data/Sites/1/media/forumfiles/samplezoom.zip) sample submitted by Colin worked great as the basis for a workflow that searches and zooms in when the features are polygons. When looking at the workflow output, the polygon feature search returns the expected X-Y min-max extent info. However, when a point feature is searched with the same workflow, the zoom doesn't occur. Looking at the workflow output in the simulator, I see spatial reference info appended to the X-Y extent info.
Any ideas why the spatial info is included on the point features but not the polygon features?
When I ran into that problem, I decided to give the buffered zoom (http://support.geocortex.com/Data/Sites/1/media/forumfiles/bufferedzoom.zip) sample submitted by Jonathon a try. That sample provided the desired zoom to the selected point feature, however, the information displayed in the Results pane does not reflect the layer configuration in the site.xml file. In fact, the results only show the default "globe" icon with no additional information. The same is true with the map tip that is displayed. It's basically an empty window with a link to "View Additional Details". The additional details are correct.
Any ideas where are the results coming from if the site.xml configuration is being bypassed?
One final question, Colin mentioned in the original thread he was, "...going to put in a feature request for an Activity that takes in an Esri featureSet and zooms the map to that extent." Any word on the status of that request?
Thanks,
Steve
-
I discovered the source of the error where I said, "In fact, the results only show the default "globe" icon with no additional information. The same is true with the map tip that is displayed. It's basically an empty window with a link to "View Additional Details". The additional details are correct."
I had been working on an ADF site just prior and when I set up the workflow I entered the name of the layer rather than the ID number for the layer information. Changing from a name to the correct ID number corrected the problem.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar