Skip to main content

With HTML 2.7, is there a way to add Draw & Measure commands to the I Want To menu?

Comments

10 comments

  • John Nerge
    Yes, but you need to do it in a workflow. Here's a sample workflow you can add to your I Want To menu to measure a distance.

     

    https://drive.google.com/open?id=0B_hHHiqcTKMfdDdsV0Y5WlhjNlk
    0
  • Permanently deleted user
    Thanks for your help, this is exactly what I was looking for.
    0
  • Permanently deleted user
    John, do you mind if I put that workflow up in the code gallery?
    0
  • John Nerge
    Jordan, go for it.
    0
  • Permanently deleted user
    Hi John,

     

    I want to include measure a distance into I want to menu.

     

    I tried to copy this code to txt doc and then rename it as .xaml file but it does not working.

     

    What might be the issue here?

     

    I must do anything else

     

    thanks in advance

     

    best,

     

    Lubna
    0
  • John Nerge
    Sometimes some extra text gets copied from the txt doc to the xaml. Make sure that your xaml starts with the opening <Activity tag and ends with the closing <Activity> tag.
    0
  • Brian Oevermann
    I added Distance measure and Area measure tools directly to the I Want To menu, no workflow required. This was to satisfy users' demand for a method to do a quick measurement without burrowing into the toolbars.

     

    Add a menu item and populate the dialog box as follows:

     

    Distance:

     

    Text: @language-measurement-measure-distance-tool-name

     

    Description: @language-measurement-measure-distance-tool-tooltip

     

    Command: SetActiveTool

     

    Command Parameter: MeasureDistanceTool

     

    Icon URI: Resources/Images/Icons/Toolbar/measure-distance-24.png

     

    Area:

     

    Text: @language-measurement-measure-area-tool-name

     

    Description: @language-measurement-measure-area-tool-tooltip

     

    Command: SetActiveTool

     

    Command Parameter: MeasureAreaTool

     

    Icon URI: Resources/Images/Icons/Toolbar/measure-area-24.png

     

    Keep in mind that there is no functionality to edit or delete the objects. You would need to go into the toolbars and use those functions from there, assuming you have set them up.

     

     
    0
  • Permanently deleted user
    Hi Brian,

     

    thank you for your help.

     

    best,

     

    lubna

     

     
    0
  • Carmen Durham
    All of the above helped me to place a Quick measure tool (without sticky) on the Home panel.  thank you!
    0
  • Mark Norbury
    Thanks for this.  It would be good to know what all the possible parameters are for SetActiveTool.  If I go to docs.geocortex.com and do a search for MeasureDistanceTool no results are returned.  Where did Brian go in order to know to use this?  Could the guys at Latitude/VertiGIS document this?
    0

Please sign in to leave a comment.