|
POST
|
> but my mmpk file remains blank when you try to load it. Can you explain what you mean by "blank" ? Is the file not downloading, is the mmpk not containing any maps, are the maps that are in it not able to load (and if so what error are you getting?), do the map have layers in it after load, or do it all look fine but you just see blank rendered map on the mapview, do any of the layers fail to load (and if so again with what error)?
... View more
11-19-2021
09:29 AM
|
0
|
0
|
1051
|
|
POST
|
Did you give the application permission to read that location?
... View more
11-19-2021
09:28 AM
|
0
|
1
|
1817
|
|
POST
|
> is there a way for 'ArcGIS Runtime for .Net' to create these points programmatically rather than slpk file? No there isn't. The SLPK is heavily indexed so that it is possible to handle and render billions of points, even on lower end device - a lot of preprocessing goes into that, so it won't run real-time.
... View more
11-19-2021
07:52 AM
|
0
|
0
|
2020
|
|
POST
|
Thank you for confirming @JimPickett . There does seem to be an issue with signing multiple native libraries in VS4Mac at this point. If you instead publish the generated package with XCode, it should work ok though.
... View more
11-17-2021
01:41 PM
|
0
|
3
|
3098
|
|
POST
|
Is/was the layer already part of a map? It can only be in one layer collection. If you just need to turn layers on/off like the above screenshot seems to indicate, you can just use the IsVisible property.
... View more
11-10-2021
04:10 PM
|
0
|
0
|
1668
|
|
POST
|
It is not officially supported, and we don't ship ARM32 binaries any longer, which I believe you'll need. If you go back some versions, you can use one that includes it - it should work and I had it working as well. To use a more recent version you'll need an ARM64 version of IoT Core. (I'm actually a bit surprised if you managed to compile for ARM32 since you should have gotten a build error)
... View more
11-01-2021
11:25 AM
|
0
|
0
|
1813
|
|
POST
|
You would use the Identify operation to find/inspect/select/ a feature. See this example: https://developers.arcgis.com/net/wpf/sample-code/scene-layer-selection/
... View more
10-28-2021
09:39 AM
|
0
|
1
|
2905
|
|
POST
|
@TroyAvery1 It shouldn't. Just touching the managed assembly should be fine. Most types however that are backed by the native bits of runtime would cause a load of the native lib, so just try and avoid creating any objects, or calling any static methods in the assembly until you've initialized stuff. Also note that the import resolvers only apply to loading the native assemblies - it does not relate to loading of the resources (ie shaders and other resources). Those are usually expected to still be located in the application folder together with the managed assemblies.
... View more
10-27-2021
10:11 AM
|
0
|
1
|
6745
|
|
POST
|
Just following up on this: The reason you weren't seeing InstallPath in the assembly but in the doc, was that the doc was showing the .NET Framework version, and not the .NET Core version which uses a very different built-in mechanism for loading native runtimes. The doc site got updated with U12 so you can switch between all supported target frameworks, and there's also a table showing which platforms a given member is available on. (expand the "applies to" table here: https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.InstallPath.html )
... View more
10-27-2021
10:03 AM
|
0
|
0
|
1911
|
|
POST
|
There's currently an issue with enabling SDK linking when deploying to simulator (we should have a fix for that in U13), but if you want hot reload etc, you'd want it off anyway 🙂
... View more
10-26-2021
11:18 AM
|
0
|
0
|
2858
|
|
POST
|
It'll work today, but it'll use the x64 build instead of the arm64-simulator build. The main issue is Xamarin doesn't support it today. Once they do, we do plan to add support for the arm64-simulator architecture. (I'm using an M1 myself and don't have an issue using the simulator)
... View more
10-26-2021
10:52 AM
|
1
|
2
|
2862
|
|
POST
|
Here's the gist of how to hint .NET Core where to look for native libraries to load:
private static IntPtr runtimeLibPtr = IntPtr.Zero;
private static IntPtr runtimeLibWpfPtr = IntPtr.Zero;
private const string version = "100_13";
private const string InstallPath = @"C:\ArcGISRuntimeInstall\";
private static IntPtr DllImportResolver(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath)
{
string path = $"{InstallPath}x{(Environment.Is64BitProcess ? "64" : "86")}\\{libraryName}";
if (libraryName == "RuntimeCoreNet" + version + ".dll" && assembly.FullName == typeof(Esri.ArcGISRuntime.ArcGISRuntimeEnvironment).Assembly.FullName)
{
if (runtimeLibPtr == IntPtr.Zero)
{
if (System.Runtime.InteropServices.NativeLibrary.TryLoad(@$"{path}", out runtimeLibPtr))
return runtimeLibPtr;
}
return runtimeLibPtr;
}
else if (libraryName == "RuntimeCoreNet" + version + ".WPF.dll" && assembly.FullName == typeof(Esri.ArcGISRuntime.UI.Controls.MapView).Assembly.FullName)
{
if (runtimeLibWpfPtr == IntPtr.Zero)
{
if (System.Runtime.InteropServices.NativeLibrary.TryLoad(@$"{path}", out runtimeLibPtr))
return runtimeLibWpfPtr;
}
return runtimeLibWpfPtr;
}
return IntPtr.Zero;
} You would then hook this Dll import resolver up at app startup before calling into any of our APIs: System.Runtime.InteropServices.NativeLibrary.SetDllImportResolver(typeof(Esri.ArcGISRuntime.ArcGISRuntimeEnvironment).Assembly, new System.Runtime.InteropServices.DllImportResolver(DllImportResolver));
System.Runtime.InteropServices.NativeLibrary.SetDllImportResolver(typeof(Esri.ArcGISRuntime.UI.Controls.MapView).Assembly, new System.Runtime.InteropServices.DllImportResolver(DllImportResolver));
... View more
10-22-2021
10:35 AM
|
0
|
15
|
5379
|
|
POST
|
Did you define a popup definition on your feature layer? Otherwise that collection would be null.
... View more
10-20-2021
10:56 AM
|
0
|
0
|
3369
|
|
POST
|
Is `result?.Popups?.FirstOrDefault() is Popup` true? Does that feature layer have popups configured?
... View more
10-18-2021
02:05 PM
|
0
|
1
|
3397
|
|
POST
|
No idea what "QuartzCore" is but I'm assuming it is one of your assemblies? I don't see anything in that call stack that is pointing to the Runtime SDK. My guess is you have some code somewhere that tries to interact with the UI, without first switching to the UI Thread.
... View more
10-18-2021
02:03 PM
|
0
|
1
|
1953
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 05-11-2026 07:05 AM | |
| 2 | 03-19-2026 06:03 PM | |
| 1 | 03-03-2026 04:41 PM | |
| 1 | 02-26-2018 07:53 AM | |
| 1 | 02-26-2018 07:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|