Zum Hauptinhalt gehen

Change measure line and area drawing color in the HTML5 Viewer

Kommentare

6 Kommentare

  • Permanently deleted user
    You should be able to change the color using the Desktop.json.js config file. You can open the desktop.json in notepad and make edits. The location is most likely something like...

     

     C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\[Name of Essentials Instance]t\REST Elements\Sites\[Name of Site]\Viewers\[Name assigned to HTML5 Viewer]\VirtualDirectory\Resources\Config\Default

     

    You can use the HTML colorpicker to help you select a color. (http://www.w3schools.com/colors/colors_hex.asp). After you save the changes to the file, you will need to reload the viewer to see changes in the color.
    0
  • Srikanth Pilli
    Hi Lauren,

     

    Could you me point to the module or line where I should look for editing the desktop.json file in order to change measure line and area drawing color?

     

     

    Thanks

     

    Srikanth
    0
  • Nico Burgerhart
    The MeasurementViewModel from the Measurement module.

     

    lineColor: The color of measurement lines on the map, including the lines for distance measurements and the outlines of area measurements. The color can be an HTML color name or a hexadecimal value, for example, red or #FF0000. The default color is #0000FF (blue).

     

    fillColor: The fill color inside area measurements. The color can be an HTML color name or a hexadecimal value, for example, green or #00FF00. The default color is #6495ED (cornflower blue).

     

      "viewModels": [ { "id": "MeasurementViewModel", "type": "geocortex.essentialsHtmlViewer.mapping.modules.measurement.MeasurementViewModel", "configuration": { "markupLayerName": "Drawings", "lineColor": "#0000FF", "fillColor": "#6495ED", "textColor": "#000000", "highlightColor": "#FFFFFF", "outlineColor": "#000000", "outlineWidth": "1", "totalMeasurementTextColor": "#FFFFFF", "totalMeasurementHighlightColor": "#000000", "totalMeasurementOutlineColor": "#FFFFFF", "totalMeasurementOutlineWidth": "2", "highlightRadius": "5", "textSize": "12px", "addMarkupToMapByDefault": true } } ]

     

     
    0
  • Srikanth Pilli
    Thanks Nico.
    0
  • Permanently deleted user
    Nico, similar question, my users don't like the color of the vertex (currently grey) when they are editing our feature services, they'd like a brighter color vertex so it stands out over aerial imagery. Where can I change that?
    0
  • Nico Burgerhart
    I think this sketch is just markup, this means you could configure it in the Markup module (defaultPointMarkup, defaultLineMarkup, defaultPolygonMarkup). I have not tested this.
    0

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