Hoppa till huvudinnehållet

Does Set Layer Definition Expression work with dynamic layers?

Kommentarer

7 kommentarer

  • Stefan Schweigert

    Hi Anthony,

     

    For an example of how to configure this workflow activity, take a look at this workflow that can be run from this GVH sample site under the Layer tab in the toolbar.

     

    Are you running this workflow through GVH or another client application?

     

    Thanks, Stefan

    0
  • Stefan Schweigert

    When I used the details you supplied to Support, I was able to hide areas of the map based on the layer definition you provided.

    0
  • Permanently deleted user
    I have not been able to do what you have done. I am using the GVH. My site is set up like this where layer 300 is my dynamic layer. I tried using the activity against layer 0 (the ecoregions) and that works fine. When I try against layer 300 I get nothing. If I try to use the Get Layer activity on layer 300 I get nothing. If try on layer 0, I do get a layer back. Are you able to give me more info on how you set things up? thanks
    0
  • Stefan Schweigert

    I used:

    • Layer Id: 0
    • Sublayer Id: 0
    • Expression: sd.dbo.BIO_ENR_WFE_SHV_SpeciesView.LatinName = 'Lithobates sylvaticus (Rana sylvatica)'
    0
  • Permanently deleted user

    I thought maybe it is something to do with the layer Ids but I am not able to set my dynamic layer to have id of 0 as it conflicts with the ecoregions layer in the service. If I set it to zero my viewer does not load.

     

    The expression you have above is the one I set in the dynamic layer as a starting point so I could see if the Get Layer Definition Expression would return anything (which it did not).

     

    If you try something like this does the map update?

    sd.dbo.BIO_ENR_WFE_SHV_SpeciesView.LatinName = 'Ursus maritimus'

     

    Have you confirmed in the browser console that the activities are reporting back values? I'm still struggling to make this work.

     

     

    0
  • Stefan Schweigert

    I'm now able to reproduce this issue and it appears to be a bug.

     

    Sorry for the confusion, I was unclear by the use of the term 'dynamic layer', since the majority of map services contain dynamic layers, but the layer that you mentioned is a JSON-defined dynamic layer, a detail that I originally missed.

    0
  • Permanently deleted user

    I think the Get Layer activity and potentially the Get/Set Layer Property are also impacted in a similar way. I almost certain the Get Layer activity is not working correctly but not certain about the other two.

    0

Du måste logga in om du vill lämna en kommentar.