AnsweredAssumed Answered

initialize module when map loaded

Question asked by HimBromBeere on Aug 28, 2019
Latest reply on Aug 30, 2019 by HimBromBeere

I have a dockpane which presents some information from a standalone-table. All examples I found Map.GetStandaloneTable. However during startup - in particular when the dockpane and its related module are initialized - there is no such map:

 

protected override bool Initialize()
{
     QueuedTask.Run(() =>
     {
          var map = // MapView.Active is null at this point
          var table = map.GetStandaloneTable("MyTable");
          // do something with the table
     }));
     return true;
}

Is there a way to load a table without the map being fully loaded? Alternativly I would initialize the module when the map is fully loadedwhich assumes there is an event which I can register.

Outcomes