Skip to main content

measure tool label placement?

Comments

5 comments

  • Permanently deleted user
    Allen,

     

    I had that same complaint.  So I came up with a solution that you can see here: https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&id=906600000000BfGAAU 

     

    And I think they put it in the code gallery as well.

     

    Let me know if you have questions and I'd be glad to help

     

    Marshall
    0
  • Permanently deleted user
    That's great Marshall - thanks.  I think for now just the edit to the Mapping.js should take of this, but I'll play around with the remove labels piece of this as time allows.
    0
  • Permanently deleted user
    That's awesome Marshall! Thanks for sharing! 
    0
  • Permanently deleted user
    Hi all, 

     

    As of HTML5 viewer version 2.10, a setting was added to the MeasurementViewModel in the viewer configuration to set how far away from the line the total measurement label should be offset.  This setting, "polylineLabelOffset", is not accessible from Manager, so you need to add it manually to the viewer config file of you want to use it.  To use this setting:
    1. Navigate to the viewer's dekstop config file.  The default location is: C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Resources\Config\Default\Desktop.json.js
    2. Backup the file and edit the original in a text editor like Notepad
    3. Use CTRL + F to search for "id": "MeasurementViewModel"
    4. In the list of configuration properties below, add a new line at the bottom:  , "polylineLabelOffset": 50 (use whatever number you want instead of 50, the default is 5 if it is not set).  Example:  { "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, "polylineLabelOffset": 50 } }
    5. Save the file and test the viewer
    6. Repeat for Tablet.json.js and Handheld.json.js if necessary
    Hope that helps!

     

    -Amanda

     

     
    0
  • Permanently deleted user
    Defenitily helpful. thanks Amanda. 
    0

Please sign in to leave a comment.