Zum Hauptinhalt gehen

GetMapServiceInfo Activity not finding correct information

Kommentare

7 Kommentare

  • Permanently deleted user

    Hi to all

    this will break workflows. Hopefully a fix won't take too long ;-)

    Regards

    Ralph Price

    0
  • Permanently deleted user

    Hi Ralph,

    You may need to modify your workflows if you expect to use map services that support dynamic layers.

    ArcGIS 10.1 adds a new REST endpoint to define dynamic layers, so you can redefine the source and styling of layers in the map service. Starting with Geocortex Essentials 3.11, the Get Map Service Info activity has added a Source output, available in the Properties panel of Workflow Designer. When the LayerId is returned as "dynamicLayer", you need to keep track of the dynamic layer's source definition by creating a (type: LayerSource) variable for the Source output. Activities such as Query Task have a Source input argument, and you will need to pass along the layer source definition to these activities.

    The Source output of Get Map Service Info will be null if you use map services that do not support dynamic layers (either pre-ArcGIS 10.1 or with "Allows per request modification of layer order and symbology" disabled). Activities such as Query Task should ignore a null Source input and work as it did before.

    Please let us know if there is a particular activity that doesn't allow you to correctly access a layer through a combination of LayerId / Source inputs.

    0
  • Permanently deleted user
    Thanks Paul

     

    Great explanation. I will try shortly

     

    Regards

     

    Ralph
    0
  • Permanently deleted user

    Kind of weird. I added a variable called _sourceLayer of type LayerSource, inserted it into the GetMapServiceInfo activity under the out argument "Source", then added it to the Query Task "Source" in argument. While the workflow finishes, it doesn't display: the layer name, the feature label, the feature description or the layer icon. How did it lose its connection to the actual layer being queried? How do I indicate what this is supposed to be?

    0
  • Permanently deleted user

    Hi Heather,

    I assume you are using Select Features to display the results. You will need a to specify a unique Layer Id or Layer Name in Select Features for the viewer to find your configured layer details (label/description/icon/etc.) as defined in your site's map service. Unfortunately, once a map service starts using dynamic layers, the GetMapServiceInfo activity returns a LayerId of "dynamicLayer" for all layers, which is no longer a unique key back to the layers in your map service configuration.

    Presumably you already have a layer name in your workflow if you are using the GetMapServiceInfo activity. Could you try setting the Layer Name input instead of Layer Id when using Select Features?

    0
  • Permanently deleted user

    It seems to be working with assigning the query layer name but not the layer id in the select activity, so thank you!

    0
  • Permanently deleted user

    I am having the same issue on Geocortex 4.7 (Viewer 2.8).

    I create a workflow that invokes "GetMapServiceInfo" ,

     

    I supply the input values correctly, and I expect the ArcGIS server URL and ArcGIS layer "number" in the LayerID

     

    HOWEVER: on slow computers, I ~sometimes~ get a string "1" (correct) and sometimes I get the string "dynamicLayer" (which is wrong)..  The problem is that is works sometimes, but often fails on slower computer/clients. 
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.