Zum Hauptinhalt gehen

Changing the Color of the Highlighted Features

Kommentare

6 Kommentare

  • Permanently deleted user

    You can change this in the viewer settings. Go to the Look and Feel area, select the Theme tab and change the Selection settings:

    <!-- BEGIN: Selection -->

     

      <Color x:Key="SelectionFillColor">#99ff0000</Color>

     

      <Color x:Key="SelectionBorderColor">#FFff0000</Color>

     

      <SolidColorBrush x:Key="SelectionIconFillColor">#FFff0000</SolidColorBrush>

     

      <SolidColorBrush x:Key="SelectionIconStrokeColor">#FFff0000</SolidColorBrush>

     

      <!-- END: Selection -->
    0
  • Permanently deleted user

    Dear Josh Vickrey,

    Thank you for replying, I face the same problem, but I need the code for "NO COLOR" background, please.

    Best,

    Majdoleen

     

    0
  • John Nerge

    I haven't tried this in GE, but the first two characters in the color code are the opacity settings. So if you use a color that starts with #00, then it will be 100% transparent.

    0
  • Permanently deleted user

    Thank you John Nerqe, It is working perfectly .

    0
  • Permanently deleted user
    I need to change the color based on attribute of feature (eg: project status =started) after filtering by a query .. how can we do this 
    0
  • Permanently deleted user

    Hi Josh, 

     

    If you are using the "HighlightEsriFeatureSet" command in a Run External Command activity in a workflow, you can also change the highlight border and fill colour as well using 2 more Run External Command activities. The commands you are looking for are: 

     

    SetHighlightBorderColor

     

    SetHighlightFillColor

     

    The first command sets the border colour and the second command sets the fill colour as specified in the name of the command. In the command parameter, you can set the colour by specifying the 6 digit hex code of the colour. 

     

    For example, In the Run External Command, to set the highlight fill colour to green the activity will look like this:

     

    Command: "SetHighlightFillColor"

     

    Command Parameter: "#00FF00"

     

    If you want to add a transparency to the fill then you can include a 2 digit hex number before the colour code and it would make the colour transparent. For example, to set the transparency to a 40% green fill colour, it would look like this:

     

    Command: "SetHighlightFillColor"

     

    Command Parameter: "#6600FF00"

     

    The list of transparency codes can be found at this link here (http://stackoverflow.com/questions/23201134/transparent-argb-hex-value) .

     

    Just include these 2 RunExternalCommands before the "HighlightEsriFeatureSet" command. 

     

    I hope this helps.

     

    Carmen
    0

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