Hello,
I have developed my WinUI application in developer mode withe API key settings and it works fine:
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
ArcGISRuntimeEnvironment.ApiKey = "xyz";
m_window = new MainWindow();
m_window.Activate();
}
I want to prepare its release and added the Litelicense code available here: here as follow:
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
// Note: it is not best practice to store API keys in source code.
// The API key is referenced here for the convenience of this tutorial.
ArcGISRuntimeEnvironment.ApiKey = "xyz";
ArcGISRuntimeEnvironment.SetLicense("runtimelite,1000,yyyy");
m_window = new MainWindow();
m_window.Activate();
}
but now my mapview is empty...
What am I doing wrong?