|
POST
|
Hi,
We try to add AdMob advertising to our MAUI application using Plugin.MauiMTAdmob nuget package. We call Interstitial Ad loading method at the end of MainPage constructor. When ad is loaded, we call showing method. At the beginning we can see map with our data, then ad page shows on top of MainPage. After closing ad page MapView interacts with gestures (scale and viewpoint properties changes), but MapView shows initial extent. Setting viewpoint from code doesn't refresh MapView view too.
We are trying to change advertising loading place now.
I understand what problem isn't with ArcGIS Runtime, but could you give me some ideas why MapView couldn't refresh.
P.s. On iPhone it works as expected, MapView refreshes.
... View more
11-28-2024
03:39 AM
|
1
|
0
|
731
|
|
POST
|
Hi,
After some investigation I have found that it couldn't be only distance issue. Sometimes it works on longer paths and doesn't on shorter. I noticed what it could be dependent on restricted paths for walking (highways and etc.) If it is possible to find a way that for example can cross highway but not goes along highway and distance is longer (but not so much) then it creates route. Otherwise, it returns exception. So, it depends on not only distance but and other network parameters.
... View more
11-27-2024
04:44 AM
|
0
|
0
|
1740
|
|
POST
|
Hi,
I have modified ArcGIS Pro SDK Community sample InspectorTool. I have changed autoload to true. It works as expected. Initialize event arises before ArcGIS Pro starts (on splash screen). Check project target framework (.NET8.0) version and desktopVersion in config.daml file.
... View more
11-26-2024
11:41 PM
|
0
|
1
|
1410
|
|
POST
|
Hi,
I have edited code from the Find Place sample (MAUI). Code below:
GeocodeParameters parameters = new GeocodeParameters();
// Get the current map extent.
Geometry extent = MyMapView.VisibleArea;
// Update the search parameters.
parameters.SearchArea = extent;
var locatorTask = new LocatorTask(new Uri("https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer"));
// Get the location information.
IReadOnlyList<GeocodeResult> locations = await _geocoder.GeocodeAsync("Coffee", parameters);
// Stop gracefully and show a message if the geocoder does not return a result.
if (locations.Count < 1)
{
return; // 3. Stop.
}
It works and returns locations. Sample is here:
https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/MAUI/Maui.Samples/Samples/Search/FindPlace
... View more
11-25-2024
07:31 AM
|
0
|
0
|
1078
|
|
POST
|
I have checked all Esri Community samples. There are 3 cases of using Store method. First method using inside EditOperation callback. Second method uses Store inside Geodatabase.ApplyEdits (sample MemoryGeodatabase). And third one as I wrote above is using Store in Row events without additional requirements (sample ModifyNewlyAddedFeatures). Rest of Store samples (6 from 😎 use first method.
I used Store method in my first add-ins, but now there is no Store usage in my code. It seems that is similar solution as in ArcObjects but it works different.
... View more
11-20-2024
10:36 PM
|
0
|
0
|
1176
|
|
POST
|
You could try to call python script with your workflow from CoreHost application or execute python script directly. We have similar situation with geoprocessing in CoreHost application. There is no way to call geoprocessing tool directly, but you can call it from python.
... View more
11-20-2024
09:10 AM
|
0
|
1
|
2907
|
|
POST
|
Hi,
If I understand correctly, you are talking about the AnimationCurve and duration which are available when you set viewpoint from code. For internal calls of setting viewpoint there is no such interaction parameters, I think.
... View more
11-20-2024
08:45 AM
|
0
|
0
|
2376
|
|
POST
|
Sorry @CarlosPiccirillo2 .
Project class belongs to ArcGIS.Desktop.Core workspace which is not accessible from CoreHost application. ArcGIS.CoreHost and ArcGIS.Core assemblies are available from Corehost application only. More information here.
... View more
11-20-2024
08:25 AM
|
0
|
0
|
2915
|
|
POST
|
Hi,
You could use Row.Store method without EditOperation callback only in OnRowChangedEvent implementation. More information here. There are not so many cases which need Store using.
... View more
11-20-2024
08:06 AM
|
0
|
2
|
1193
|
|
POST
|
Hi,
Project.OpenAsync returns Task<Project>. So, to assign result of Project.OpenAsync to Project variable, you need to use await before Project.OpenAsync. Your method could look like code below:
public static async Task<Project> GetProject()
{
try
{
string aprxFile = PATH_Aprx_template + "exhibit_map.aprx";
// Open the project
Project project = await Project.OpenAsync(aprxFile);
// Check if the project is null (failed to open)
if (project == null)
{
Console.WriteLine("Failed to open the project.");
return null;
}
return project;
}
catch (Exception ex)
{
Console.WriteLine($"Error in GetProject: {ex.Message}");
return null;
}
}
... View more
11-14-2024
09:16 AM
|
0
|
2
|
3003
|
|
POST
|
Hi,
There is no need to use QueuedTask.Run. GetPlugInWrapper doesn't need MCT thread
protected override void OnClick()
{
// ArcGIS Pro Command's DAML ID.
var commandId = "esri_editing_DivideCommand";
// get the ICommand interface from the ArcGIS Pro Button
// using command's plug-in wrapper
var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
if (iCommand != null)
{
// Let ArcGIS Pro do the work for us
if (iCommand.CanExecute(null))
{
iCommand.Execute(null);
MessageBox.Show("Any custom code written here executes without waiting for the user to divide a polyline");
}
}
MessageBox.Show("iCommand is done");
}
... View more
11-08-2024
07:10 AM
|
0
|
1
|
2389
|
|
POST
|
Hi,
Declaration of your method must be:
public static Task<long> GetContainedLegOid(FeatureLayer MapMember, Geometry shape, Int64 faid, string startEnd)
Call to you method:
var oid = await GetContainedLegOid(mapMember, shape, faid, startEnd);
It is not good idea to use MessageBox inside QueuedTask.Run. For example, you can return -oid and check value after calling your method:
var oid = await GetContainedLegOid(mapMember, shape, faid, startEnd);
if(oid == 0) {
MessageBox.Show(string.Format("{0} NodeLeg of rdsmall arc with FAID = {1} not found", startEnd, faid));
}
else {
if(oid < 0) {
MessageBox.Show(string.Format("Multiple NodeLegs found, check results"));
oid = -oid;
}
}
... View more
11-07-2024
10:19 PM
|
0
|
0
|
894
|
|
POST
|
Hi,
Try to subscribe to ArcGIS.Desktop.Layouts.Events.LayoutViewEvent and check args.Hint == LayoutViewEventHint.DrawingComplete. LayoutViewEventHint Enumeration here.
... View more
11-07-2024
04:53 AM
|
0
|
0
|
2946
|
|
POST
|
Hi,
There is no difference between the databases you are going to edit from ArcGIS Pro add-in developer side. Take a look at these links: ArcGIS Pro ProConcepts:Editing and video from Esri developer session. It will let you understand editing in ArcGIS Pro SDK.
... View more
11-06-2024
10:20 PM
|
0
|
0
|
718
|
|
POST
|
Hi,
I had similar issue. After some investigation I have found that it couldn't be only distance issue. Sometimes it works on longer paths and doesn't on shorter. I noticed what it could be dependent on restricted paths for walking (highways and etc.) If it is possible to find a way that for example can cross highway but not goes along highway and distance is longer (but not so much) then it creates route. Otherwise it returns exception. So it depends on not only distance but and other network parameters.
... View more
10-31-2024
07:59 AM
|
0
|
0
|
786
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
15 hours ago
|