Aller au contenu principal

zoom and pan to a feature result from a search

Répondu

Commentaires

5 commentaires

  • Commentaire officiel
    Conner Leverett

    Hi Larisa,

    All you need to do is add the "map.zoom-to-features" command to the command chain:

    [
    "map.zoom-to-features",
    {
        "name": "map.zoom-to-scale",
        "arguments": {
          "scale": 3000
        }
      }
    ]
     
     
  • Larisa Johnstone

    Thank you! I knew I had to do that, but getting the syntax just right was driving me crazy. I was close!!!!

    I really appreciate it! Thank you so much. 

    Larisa

    ____________

    FYI...this is what I was playing with: (so close )

    [

      {

        "name": "map.zoom-to-features",

        "name": "map.zoom-to-scale",

        "arguments": {

          "scale": 3000

        }

    ]

     

    0
  • Nataliya Lys

    I have Search commands configured for zoom to features from a search results. But after the latest upgrade of VertiGIS web to 5.38 the zoom to features stopped working, and in the search event configuration I discovered these errors ‘Invalid Arguments’. Did any one else run into this issue, and have suggestions on how to fix this.

     

     

    0
  • Nico Burgerhart

    This is a known bug (347291) in VertiGIS Studio Web 5.38 and Google Chrome.

    As a workaround, you can use Firefox or Microsoft Edge.

    The issue will be fixed with VertiGIS Studio Web 5.39. 

    1
  • Nataliya Lys

    Thank you, Nico. 

    Also, for a benefit of others, if you need an immediate fix, before 5.39 comes out.  I opened a support ticket and they offered a workaround that fixed the issue. What you need to do is open your VertiGIS Web designer in a Firefox or Edge browser, and then save your command as a workflow. That did a trick for me. 

     

    0

Vous devez vous connecter pour laisser un commentaire.