POST
|
To add to Preeti's answer, ALL of the above code can be replaced with AuthenticationManager.Current.AddCredential(await OAuthApplicationCredential.CreateAsync(SERVER_URL, CLIENT_ID, CLIENT_SECRET)); When using an app credential added up front, there's no need for messing with server infos, oauth configs, credential callbacks etc. Just the above line before accessing your server.
... View more
a week ago
|
0
|
1
|
99
|
POST
|
I'm not entirely if you're saying the above log was with replacing with a new mapview on resume? If that's the case, could you try it with just leaving the mapview alone as in the original sample you shared? (it's fine that the map is blank - but I'd like to understand if something on your device is not triggering these lifecycle events, since the MapView heavily relies on these to resume rendering). I do find it curious so far that you are seeing destroy+create. That could be the root of how these devices behave differently. If you repeat this on a device that does work, do you see a version of mine or your log? Lastly what does "TextureView does some things" mean?
... View more
2 weeks ago
|
0
|
2
|
401
|
POST
|
Thanks for confirming. You shouldn't have to re-create a new MapView. Just re-insert the same one. One more thing to also try. Could you try and add this to MainActivity? public class MainActivity : MauiAppCompatActivity
{
public MainActivity()
{
Lifecycle.AddObserver(new Observer());
}
private class Observer : Java.Lang.Object, AndroidX.Lifecycle.IDefaultLifecycleObserver, AndroidX.Lifecycle.ILifecycleObserver
{
void IDefaultLifecycleObserver.OnCreate(ILifecycleOwner p0) => System.Diagnostics.Debug.WriteLine("***Lifecycle.OnCreate");
void IDefaultLifecycleObserver.OnDestroy(ILifecycleOwner p0) => System.Diagnostics.Debug.WriteLine("***Lifecycle.OnDestroy");
void IDefaultLifecycleObserver.OnPause(ILifecycleOwner p0) => System.Diagnostics.Debug.WriteLine("***Lifecycle.OnPause");
void IDefaultLifecycleObserver.OnResume(ILifecycleOwner p0) => System.Diagnostics.Debug.WriteLine("***Lifecycle.OnResume");
void IDefaultLifecycleObserver.OnStart(ILifecycleOwner p0) => System.Diagnostics.Debug.WriteLine("***Lifecycle.OnStart");
void IDefaultLifecycleObserver.OnStop(ILifecycleOwner p0) => System.Diagnostics.Debug.WriteLine("***Lifecycle.OnStop");
}
} When I do this, this is what I see in the output window once the app comes back from the sharing operation. I'd be curious if that differs on your Samsung device: [TextureView] Paused by user
[TextureView] Stopping pulse
[0:] ***Lifecycle.OnPause
[0:] ***Lifecycle.OnStop
[0:] ***Lifecycle.OnStart
[0:] ***Lifecycle.OnResume
[TextureView] Resumed by user. Texture view available: True
[TextureView] Starting pulse
... View more
3 weeks ago
|
0
|
4
|
539
|
POST
|
Thank you for sharing the log. I do see the rendering stops for the mapview on share (which is expected), but I don't see a resume. As an experiment could you after sharing, try and remove the mapview from the view and re-insert it? Would that make it start up again? That would confirm if we're having some issues detecting resume.
... View more
3 weeks ago
|
0
|
6
|
547
|
POST
|
Do you _only_ see the issue on this device, or is it the only device you've been testing on? (what devices do you have that it worked on?) Does LogCat give any indication of an issue with the application?
... View more
3 weeks ago
|
0
|
8
|
559
|
POST
|
Rasters will rotate based on their world file or georeference coordinates. If you rotated the image, it wouldn't align with the underlying map any longer. If you generate these images, can't you generate them in an un-rotated fashion? (as in north up).
... View more
4 weeks ago
|
0
|
2
|
428
|
POST
|
If I'm not mistaken, Legend isn't supported for a DictionaryRenderer. Try calling _myFeatureLayer.GetLegendInfosAsync() and see if it returns anything.
... View more
08-25-2025
04:30 PM
|
0
|
0
|
496
|
POST
|
I'm curious: Does it work if you instead of using *, add all the missing field names to the list? I'm curious if it's a bug wrt using *, or if the data just isn't being made available for whatever reason.
... View more
08-14-2025
09:39 AM
|
0
|
0
|
592
|
POST
|
Nice catch. This is actually a bit of an oversight and should have been publicly settable from subclasses. I'll log an internal bug. For now, here's a totally unsupported way to achieve it using reflection. This may or may not work in the future (tested on 200.8 but should likely work on older versions too): private void SetAttribution(string attribution)
{
var field = typeof(Esri.ArcGISRuntime.Mapping.ImageTiledLayer).GetField("_coreReference", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
var method = field.FieldType.GetMethod("SetAttribution", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public);
method.Invoke(field.GetValue(this), new object[] { attribution });
}
... View more
08-12-2025
04:33 PM
|
1
|
0
|
648
|
POST
|
Also make sure you target `net8.0-windows10.0.19041` or higher with the explicit windows version in the target framework. A new WPF project typically just specifies `net8.0-windows` which is equivalent to Windows 7. We require at least `10.0.19041`. Btw you don't need to install `ArcGIS_Maps_SDK_DotNet_200_7_0.vsix`. That just gives you a local nuget repo of the packages (for offline scenarios), but they are on nuget.org so they'll just pull from there instead.
... View more
07-31-2025
12:12 PM
|
0
|
0
|
556
|
POST
|
Since we haven't been able to reproduce, there hasn't been any progress. If you have a reproducer you can share, I'll be more than happy to take a look.
... View more
07-30-2025
10:51 AM
|
0
|
0
|
173
|
POST
|
The default callout, no, but you can instead use the overload that takes a UI Element, and put whatever user-control you want inside it: https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.GeoView.ShowCalloutAt.html#Esri_ArcGISRuntime_UI_Controls_GeoView_ShowCalloutAt_Esri_ArcGISRuntime_Geometry_MapPoint_System_Windows_UIElement_System_Windows_Point_
... View more
07-28-2025
12:01 PM
|
0
|
0
|
177
|
POST
|
No the anchor is only to a certain location, and not scaling. > Is this a feasible plan, given we will have a few hundreds of devices on the map as graphic overlay ? This will definitely give you performance issues. The feature is meant for minor set of elements like callout to be placed at a location. For high performance rendering you really need to be rendering with the existing layer types - XAML just isn't geared for that kind of dynamic rendering. You could look into the raster layers which allows you to place raster images that'll scale with the zoom.
... View more
07-25-2025
10:00 AM
|
0
|
0
|
214
|
POST
|
As a widget no, but you can use the CoordinateFormatter class to build this
... View more
07-23-2025
04:01 PM
|
0
|
0
|
177
|
POST
|
You will need to set the ViewOverlayAnchor attached property on your view element so the mapview knows how to position it. Example: GeoView.SetViewOverlayAnchor(myCheckBox, new MapPoint(-117, 34, SpatialReferences.Wgs84)); See the doc here: https://developers.arcgis.com/net/api-reference/api/netwin/winui/Esri.ArcGISRuntime.UI.Controls.GeoView.Overlays.html#Esri_ArcGISRuntime_UI_Controls_GeoView_Overlays and here: https://developers.arcgis.com/net/api-reference/api/netwin/winui/Esri.ArcGISRuntime.UI.Controls.GeoView.ViewOverlayAnchorProperty.html
... View more
07-23-2025
09:07 AM
|
0
|
2
|
241
|
Title | Kudos | Posted |
---|---|---|
1 | 08-12-2025 04:33 PM | |
1 | 04-24-2025 09:37 AM | |
1 | 04-17-2025 11:24 AM | |
2 | 04-10-2025 09:21 AM | |
1 | 04-04-2025 09:19 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|