Zum Hauptinhalt gehen

Create a feature from query activity and zoom to the feature on the map

Kommentare

2 Kommentare

  • Guillaume Ruelle

    Screenshot 2021-01-15 172711I would put the following activities in the change event of your autocomplete element :

    • Query the layer to retrieve the desired feature (where =`Attribute = '${$form.state.autocomplete.value}'`)
    • Get symbol from JSON
    • Create a feature with the query.feature.geometry as geometry parameter and new created symbol
    • Add Graphics with the newly created feature
    • Set Map Extent with desired scale and the newly created feature

     

    0
  • Permanently deleted user

    @Guillaume Ruelle? thank you for your help. That worked.

    0

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