Zum Hauptinhalt gehen

Kommentare

3 Kommentare

  • Laurens van der Burgt

    Question: is it possible to select a feature on the map and access this feature (e.g.: its attributes) from a workflow.

     

    I have seen examples that the user adds a polygon on the map for querying point features, or selecting a feature by ID. However, that is not what i'm looking for.

    0
  • Mark Norbury

    This can be done using the getWorkflowInputs activity.

    $getWorkflowInputs1.inputs.context returns an array object containing details about the currently selected feature.

    $getWorkflowInputs1.inputs.context[0].attributes._originalMap returns a set of key-value pairs of the attributes (the actual attributes, not their aliases) and their values for the selected feature.

    0
  • Permanently deleted user

    There may be a way easier way than what I put together, but this process worked for my needs. This workflow gets the map object and iterates through the layers to see which have selected features. This is for WAB.

     

    https://ims.dudek.com/workflows/Development_CurrentlySelectedFeatures.json

     

    0

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