|
POST
|
Hi, GetTemplates is static function of MappingExtensions class with MapMember type parameter. You need to add using : using ArcGIS.Desktop.Mapping; There are 2 alternatives to use GetTemplates method: var editTemplates = featLayer.GetTemplates(); // or var editTemplates1 = MappingExtensions.GetTemplates(featLayer);
... View more
09-10-2024
10:00 AM
|
0
|
3
|
2614
|
|
POST
|
Hi, You need to use mobile map package (mmpk) for local routing: MobileMapPackage mobileMap = new MobileMapPackage(packageUrl);
await mobileMap.LoadAsync();
// determine if map supports routing
if (mobileMap.Maps.Count > 0 && mobileMap.Maps[0].TransportationNetworks.Count > 0)
{
_routeTask = await RouteTask.CreateAsync(mobileMap.Maps[0].TransportationNetworks[0]);
} Check indexes of maps and transportation networks according to your data
... View more
09-06-2024
06:11 AM
|
1
|
1
|
1322
|
|
POST
|
Thanks @williambohrmann3 . Yes, it works. In addition it works not only in Navigation autopanmode, but also in all modes except Off. It would be nice to have update documentation.
... View more
09-05-2024
11:58 PM
|
0
|
0
|
1241
|
|
POST
|
Hi, You can find more samples in ArcGIS Pro SDK Community samples github. Try InspectorTool sample.
... View more
09-05-2024
02:04 AM
|
0
|
1
|
2025
|
|
POST
|
Some SDKs have feature when using LocationDisplayAutoPanMode.Navigation: "If the visible map extent is changed by the user navigating the map interactively, or by a programmatic navigation method, this will cause AutoPanMode to be reset to OFF. However, if the user double-taps or pinches to zoom the map only, the AutoPanMode remains as NAVIGATION while the map is zoomed in or out, allowing users to easily zoom the map while in this mode." Text was taken from Android API reference Feature works on AppStudio too. But it doesn't work on .NET MAUI. There is no text about that feature in ArcGIS Maps SDK for .NET. Is it bug or by design?
... View more
09-04-2024
06:22 AM
|
0
|
2
|
1290
|
|
POST
|
Hi, I would recommend adding dependency to config.daml file to ADCore where esri_core_projectDockPane resides: <dependencies>
<dependency name="ADCore.daml" />
</dependencies>
... View more
09-03-2024
03:47 AM
|
0
|
1
|
1814
|
|
POST
|
Have you seen ArcGIS Pro SDK Community Licensing sample? It works with add-in. It would be like external ArcGIS Pro extension license.
... View more
08-29-2024
11:53 AM
|
0
|
2
|
1687
|
|
POST
|
Hi, Guessing the order of parameters in a Spatial Analyst function is a great art. In your case output parameter is first. To find reason why your geoprocessing fails add few lines: var parameters = Geoprocessing.MakeValueArray(@"C:\temp\test.tif", 2.6, "FLOAT", 100.0, pEnp);
var cts = new CancellationTokenSource();
var results = await Geoprocessing.ExecuteToolAsync("CreateConstantRaster_sa", parameters, null, cts.Token,
(eventName, o) =>
{
System.Diagnostics.Debug.WriteLine($@"GP event: {eventName}");
if (eventName == "OnMessage" || eventName == "OnValidate")
{
System.Diagnostics.Debug.WriteLine($@"Msg: {o}");
}
}, GPExecuteToolFlags.None); More info here.
... View more
08-26-2024
12:32 PM
|
1
|
0
|
1084
|
|
POST
|
I think that you use ArcGIS Pro 3.2. I have tested on ArcGIS Pro 3.2 and have the same results. I had older samples and made testing with them. Old version of sample works, newest don't. The difference is in csproj file. Old version: <TargetFramework>net6.0-windows</TargetFramework>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> New version: <TargetFramework>net8.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
... View more
08-20-2024
01:00 PM
|
0
|
1
|
2108
|
|
POST
|
Hi, You can create temporary GDB for Analysis.Near(). Clean and fill it with your analysis data each time.
... View more
08-20-2024
06:19 AM
|
0
|
0
|
2198
|
|
POST
|
Hi, Have you tried ArcGIS Pro Esri Community sample CoreHostGDB ? You can modify it for your requirements. Change geodatabase constructor to one of the overloads for enterprise database: public Geodatabase(
DatabaseConnectionProperties databaseConnectionProperties
) or public Geodatabase(
DatabaseConnectionFile databaseConnectionFile
) Add extra button which executes your workflow on selected table record. After testing you can delete all GUI if you don't need it. To create Buffer use GeometryEngine.Instance.Buffer. You can use all stuff from two libraries: ArcGIS.CoreHost.dll and ArcGIS.Core.dll
... View more
08-20-2024
12:59 AM
|
0
|
3
|
2118
|
|
POST
|
Hi, Look at the Community solution here. Maybe it could help you.
... View more
08-19-2024
03:55 AM
|
0
|
2
|
2107
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|