Skip to main content

Problems with Running Viewer Commands

Comments

6 comments

  • Malcolm Walker
    • Community-Manager

    Yes, i also found this. I'm thinking not all these commands are implemented in WF5?

    As highlightFeature, i use FocusFeature as an alternative.

    ?

    Cheers,

    Minbin?

    0
  • Permanently deleted user

    FocusFeature works great. Thanks Minbin.?

    0
  • Permanently deleted user

    I'd recommend steering clear of highlight commands if possible. A bunch of them were deprecated in 2.8, and some of them are designed to work with Geocortex Features instead of Esri Graphic objects. You'll also have to watch out for unwanted interactions from the results list/table.

     

    My recommendation would be to use the Add Graphics Layer Features activity, or the markup commands (eg, AddMarkupGeometry) instead when you need to draw features on the map.

    0
  • Permanently deleted user

    Ok, thanks for the info Amanda. I did find that FocusFeature viewer command is flakey, like the other ones that deal with highlighting.

     

    ?So, sounds like I have 2 options:

    1) Add graphics layer activity

    2)AddMarkupGeometry. With this option, can you give an example or point me to documentation of how I would specify the symbol to use? By default its a blue circle for point geometry. I'd like to mimic the highlight symbol or something close to that. Thanks.

    0
  • Permanently deleted user

    Hi Zobra,

     

    The markup geometry commands don't accept any parameters for symbology, rather they use the current markup style defined by the viewer (ether from the drawing tool, or from the viewer's default). To change the viewer's default markup symbology:

     

    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 "defaultPointMarkup".
    4. Change the "pointColor" property. The first two digits are for alpha, then red, then green, then blue. The line and polygon markup options are a few lines below as well if you're planning to use markup with lines or polygons.
    5. Save the file and test in the viewer
    6. Repeat for Tablet.json.js and Handheld.json.js if necessary
    0
  • Permanently deleted user

    Got it. I ended up using the add graphics layer option as its fairly simple to create a symbol from json. Good to know about other options though. Thanks?

    0

Please sign in to leave a comment.