Hi all,
We have a problem where when downloaded and installed, the SDK will only show the hello world map/function on 2 of the machines. They are all fresh installs of visual studio and all on the same network with the same permissions. We have tried using a local map source also.
They are all replica machines with the same hardware and are fairly new.
Any ideas would be appreciated
thanks.
Hi,
Tried using that method of calling the files, still nothing, code at the moment is this:
public MainPage()
{
this.InitializeComponent();
//adding layer to map
var bkgLayer = new ArcGISLocalTiledLayer(@"ms-appx:
\Assets\OSBasemapPackage.tpk");
bkgLayer.ID = "MainLayer";
MyMap.Layers.Add(bkgLayer);
}
Note: Also used forward slashes in directory path.
Please, try to use ms-appx:///Assets/OSBasemapPackage.tpk and you have checked that the file is copied into the deployment folder?
Just to add to that: Make sure the tpk is added to your project, and the build action for the windows store project is set to "Content"