Zum Hauptinhalt gehen

getmapserviceinfo change in behaviour returning dynamicLayer

Kommentare

4 Kommentare

  • Nico Burgerhart
    See https://support.geocortex.com/essentialsGSCkba?sub-nav=kba&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA3f2000000k9cGCAQ

     

    Using the GetMapServiceInfo activity on Dynamic Layers

     

    In 2.10.x or lower, services that support dynamic layers don't convert to dynamic layers in the HTML5 viewer until a feature or tool that requires that functionality is used.  For example, using the layer visualization options to resymbolize a layer in the viewer will convert the service to dynamic layers.  In version 2.11+, all map services that support dynamic layers will be converted to such on startup, instead of waiting for user actions to trigger the change.
    0
  • Permanently deleted user
    with the change i am now unable to get the Map Service ID as that function gave it - but Query still wants it -- i am trying to fix a workflow that does a generic search that took 3 inputs:

     

    - the layer name,

     

    - the attribute to search

     

    - value to search for (in the attribute)

     

    -- and i cant figure out how to get the map service id since the changte to GetMapServiceInfo 
    0
  • Permanently deleted user
    Hi Mike,

     

    If the variable you used in the source field is called layerSource1, try something like this:

     

    Layer Source variable

     

    Regards,

     

    Wayne
    0
  • Mark Peacey
    Like Robert I couldn't get it to work when trying what was suggested in the Using the GetMapServiceInfo activity on Dynamic Layers knowledge base article. 

     

     

    Robert's suggestion worked for me. You can also output the layerSource to JSON which does contain the layerID e.g. layerSource1.ToJson gave me the following output

     

    {"type":"mapLayer","mapLayerId":9}
    0

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