Skip to main content

I wanted to search features by year and color code them based on status column

Comments

2 comments

  • Permanently deleted user
    Hi Anjitha, 

     

    If you want to dynamically change the colours of features, then the only option available is the Layer Visualization feature where you can change how the features are symbolized for the entire layer.

     

    If you only want the selected features to be resymbolized based on certain attributes, then you can mimic this by using the UpdateGraphicsLayer activity. You would first make a selection and then feed that into the activity to essentially add a markup/graphic overtop your feature to make it look like you are re-symbolizing them. You will have to be creative in how you divide up the selected features because you will need one UpdateGraphicsLayer activity per symbol/colour. 

     

    You can find an example of how to use the UpdateGraphicsLayer in the Sample Sites folder located on your server. The file path to that should look like this:

     

    C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sample Sites\Workflow_Samples\Resources\Workflows\Common Client\UpdateGraphicsLayer and CreateGraphicsLayer.xaml

     

    I hope this helps.

     

    Carmen
    0
  • John Nerge
    For a less technical user like me, a solution I would use would be to have a symbolized version of the layer as part of my site but turned off and not in the layer list. Then I'd use a workflow to:

     

    1) Have the user pick one or more years

     

    2) Use the year/s to set a layer definition on the symbolized, not visible layer

     

    3) Set the visibility of my unsymbolized layer off

     

    4) Set the visibility of my symbolized layer on

     

    It's a little clunkier on the site config side, but hopefully a lot simpler from the workflow/visualization side.
    0

Please sign in to leave a comment.