Aller au contenu principal

Get Map after application loads

Commentaires

3 commentaires

  • Nico Burgerhart

    I believe a workaround here is to check in the workflow if it is run from app or designer.

    0
  • Luke Bray

    With you there Nico Burgerhart. For anyone in the future:

    If you use these activities:

    GetBrowserInfo > If >  [False] - Get Map   |  [True] - Do nothing

    And this in your If clause:

    =$browserInfo1.url.includes("vertigisstudio/web/index.htm")

    This will return true if you are in the designer, and false from Viewer applications which seem to have 

    "/vertigisstudio/web/?app=xxxx" in the url instead of index.htm

     

    Then you have to do all your workflow debugging in the viewer obviously, and the feature won't work in Designer, but at least will work for the end user

    0
  • Victor Catalán

    The best approach in that case is to run the workflow after the map was initialized.

    You can configure this in the VSW Designer → Map Component → Events

     

    Is there another way, and is to listen when the map was loaded with the property “loaded” from the map object that ArcGIS provides, but then you have to work with events and so on and ca be challenging

    1

Vous devez vous connecter pour laisser un commentaire.