Zum Hauptinhalt gehen

I have a Geocortex Web application that has an AGOL map as a base. I have a results-detail item but all the commands seem to be disabled. I can't get any highlight, zoom or focus commands to work, Is there any documentation that explains why?

Kommentare

2 Kommentare

  • Keith Burdette

    I think it might be due to the fact that these commands need arguments. Extrapolating from another post in the forum, it seems like it needs to be in the form:

     

    [

      "map.zoom-to-features",

       "arguments": {

          "pair": value

        }

    ]

     

    My new question is what needs to go in place of "pair" to indicate a Feature and what needs to be in the "value" part to pass in the current feature in the detail pane?

     

    The developers website shows what are valid things to pass in as arguments but doesn't tell how to actually use them in the code. Some concrete examples on that site would be helpful to explain how this and all the rest of the commands work.

    0
  • Pairin Mason

    Hi Keith,

     

    The context menu on the Results-Details component, with any of the given tools provided in the Designer interface, you should not need to configure any custom command arguments. It should automatically be passing in the features and maps

    arguments through the context.

     

    There are a few possibilities why the commands may be disabled:

    - it could be an issue with the context menu items not getting initialized in designer. Try saving the app in designer and reloading may help.

    - it could be dependent on the data - if using Mesh 3D scene features or a service that doesn't return geometry, we cannot execute commands that require geometry (like map.zoom-to-features) and they will show up as disabled.

     

    Kind Regards,

    Pairin

    0

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