Zum Hauptinhalt gehen

Change Highlight Fill in Viewer 2.2

Kommentare

6 Kommentare

  • Permanently deleted user

    I found the configuration in the Highlight Module of the desktop.json.js, tablet.json.js and handheld.json.js files.

    I wanted a red border with a transparent red fill so modified the fillColor and borderColor as shown below:

                "moduleName" : "Highlight",

     

                "moduleType" : "geocortex.essentialsHtmlViewer.mapping.modules.Highlight.HighlightModule",

     

                "configuration" : {

     

                    "fillColor" : "#22FF0000",

     

                    "borderColor" : "#FFFF0000"

     

                }

     

     

    Section 14.14 of the Geocortex Viewer for HTML5 2.2 Administrator and Developer Guide has a little write up on it.

    0
  • Permanently deleted user

    Thank you, Steven,

    But I want to remove the fill entirely. I've tried commenting out the line, using an empty string and setting the value to null. None of these makes any difference to the viewer. I've done this to the desktop.json.js, tablet.json.js and handheld.json.js filesin the template folder, the folder for this specific viewer and am now looking for all instances of the original ARGB color 99ECEC3A anywhere on my server. It occurs in a frightening number of places and I'll have to experiment a little further to see if i can find the actual controlling file somewhere. It seems like there's an override somewhere that goes to the default ARGB setting if a valid setting isn't found.

    Martha

    0
  • Permanently deleted user

    I have finally found an answer that will do. I set the alpha to 00 in the ARGB in the virtual directory of the viewer and I have achieved what I need.

    0
  • James Landwehr

    Martha, could you outline a bit more specifically how to turn off fill via the file in the Virtual Directory? Like you, I want a highlighted outline only, no fill, and all my changes to the  "fillColor" : "",  element, don't get rid of the yellow fill highlight. 

    We are also on v. 2.2 of the HTML viewer. 

     

    Thanks.

    0
  • James Landwehr

    Found the solution. To get a hollow fill with a blue outline, change the following lines in desktop.json (and others).

     

                    "borderColor" : "#00cbff",

     

                    "fillColor" : "#00ECEC3A"

     

     

    Thanks Martha.

    0
  • Permanently deleted user
    Glad you found it without me, James. I've been busy trying to battle my way into the new forums and just made it today. Whew.

     

     
    0

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