|
POST
|
Have you tried using GeometryEngine.AreaGeodetic(feature.Geometry) ?
... View more
05-18-2020
10:02 PM
|
0
|
1
|
2967
|
|
POST
|
As Mike points out it's something we use internally. In fact the interface doesn't actually do anything at all (it doesn't even have any members), but is merely a way to tag certain classes so we can reuse some internal plumbing among many classes. Because it's internal, you shouldn't even see this interface appear anywhere, so I'm curious how you even stumbled on this.
... View more
05-18-2020
10:00 PM
|
0
|
0
|
1535
|
|
POST
|
As you're zooming or panning, the viewpoint is changing and therefore the event is firing. You don't want to run a bunch of heavy operations in that event. If you need to run some more expensive code, I'd recommend you use the NavigationCompleted event, which is more meant for that sort of thing.
... View more
05-17-2020
11:48 PM
|
1
|
1
|
1992
|
|
POST
|
That's definitely curious - the code used to take the packages offline is coming from the same piece of code. Is the service secured? Did you need to authenticate with the service?
... View more
05-15-2020
09:03 AM
|
0
|
1
|
2351
|
|
POST
|
I'd suggest you start with the sample app to get an idea about the bits and pieces available in the API. You can get it from the store:https://www.microsoft.com/store/productId/9MTP5013343H https://www.microsoft.com/store/productId/9MTP5013343H Full source also available here: arcgis-runtime-samples-dotnet Another good starting point is the getting started guides in the doc: Guide—ArcGIS Runtime SDK for .NET | ArcGIS for Developers
... View more
05-04-2020
11:38 PM
|
0
|
0
|
2409
|
|
POST
|
Are you asking for how to consume ArcGIS Online services in Telerik Radmap? That might be more of a question for Telerik, and it looks like they have some documentation for it: WPF Map | ArcGIS Online Map Provider | Telerik UI for WPF Since this question is posted in the ArcGIS Runtime for .NET forum, have you considered using the ArcGIS Runtime WPF control instead, since that has native integration with ArcGIS Online Services (vector and satellite), as well as support for Bing Maps and OpenStreetmap
... View more
05-04-2020
09:22 AM
|
0
|
2
|
2409
|
|
POST
|
Oops I'm sorry. That source code was for a much much older API (and not 10.2.x). Just ignore what I wrote. Your best bet is to upgrade your app to 100.7 if possible, as that should give you the best OGC support.
... View more
04-30-2020
09:50 AM
|
0
|
0
|
1736
|
|
POST
|
Ah right. Close enough. Yes it's 100: https://github.com/dotnet/runtime/blob/master/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs#L19 Reducing the timeout would be quite dangerous. Just because you generally get a fast response, doesn't mean others will, or that there can't be network hiccups now and then. Reducing it too much would mean you quite often wouldn't get a layer failing to load even though there's nothing wrong with the service. Also if you're the first to hit a service in the morning, the server might need to start up an app pool etc, and that can take longer than usual. > the application has just frozen The application shouldn't be frozen but continue to work and respond. One thing you can do is to set the SpatialReference and InitialViewpoint on your Map instance explicitly before loading it - that'll enable the MapView to start rendering immediately and render whichever layers have loaded at that point. If you don't, the MapView needs to load the first layer to figure those things out, and it'll be a while before the map can start rendering, so if the first layer is slow to load, that would affect the entire view. I'd also recommend that you use the loadstatus events to report layer status. Like a spinning circle next to each layer while they are loading, to show data is currently being fetched to start up the layer. If you really want to cancel, you're also free to call layer.CancelLoad() after a set interval if you want to stop the loading. Here's one way that could be done: CancellationTokenSource tcs = null;
layer.LoadStatusChanged += (s, e) =>
{
if(e.Status == LoadStatus.Loading)
{
tcs = new CancellationTokenSource();
tcs.CancelAfter(TimeSpan.FromSeconds(5));
tcs.Token.Register(layer.CancelLoad);
}
else
{
tcs?.Dispose();
tcs = null;
}
};
... View more
04-29-2020
10:40 AM
|
0
|
0
|
1637
|
|
POST
|
> you can only have one basemap at a time True but you can add multiple layers to that basemap. So you'd first add the imagery to the baselayers, and then next add a layer that just has the contour lines on top. It doesn't have to be added as an operational layer (the split between operational and baselayers is really just about being able to easily switch basemaps without touching the operational layers)
... View more
04-29-2020
08:15 AM
|
2
|
5
|
4125
|
|
POST
|
I don't think KVP was ever that well tested, and I've seen varying implementations of WMTS that can trip up a client. 10.2.7 is out of support at this point, but 100.x release has pretty good WMTS support. If all else fails, the WMTS layer for 10.2.x is actually open source, so you could grab that and step through it and see if it just needs a tweak or two: https://github.com/Esri/arcgis-toolkit-sl-wpf/blob/master/src/CommonAPI/API/ESRI.ArcGIS.Client.Toolkit.DataSources/Wmts/Wmts.cs
... View more
04-28-2020
10:40 PM
|
0
|
2
|
1736
|
|
POST
|
We rely on the default http connection timeout (which typically is 90s), so you should see a load error by that time.
... View more
04-27-2020
09:57 AM
|
0
|
0
|
1637
|
|
POST
|
If it's returning null, you probably have a resource generating issue in your code, or an issue with how you include the .axml in your project. The Xamarin forums are probably a better place to help trouble-shoot that. I assume you set the content too like this? arcgis-toolkit-dotnet/CompassMapViewSample.cs at master · Esri/arcgis-toolkit-dotnet · GitHub and set the build action to AndroidResource as well as placing it under Resources\layout\
... View more
04-24-2020
10:22 AM
|
0
|
1
|
2806
|
|
POST
|
I'd assume that works. Did you check the output window for any binding errors? That should give you a hint why the binding isn't working. > we can assume there is only one That is definitely a big assumption. A lot of the basemaps also have reference layers (ie labels). Also check the sample which uses the context menu to completely replace the basemap. arcgis-toolkit-dotnet/TableOfContentsSample.xaml.cs at master · Esri/arcgis-toolkit-dotnet · GitHub That might give you additional ideas how to handle this (like setting the basemap to null or empty). Generally the basemap was designed to be operated on as a whole. I guess it would have been useful to also have a Visibility property on the basemap as a whole.
... View more
04-23-2020
12:45 PM
|
0
|
1
|
1022
|
|
POST
|
> We have a try-catch around this, the exception still crashes the app. Not sure how that's possible. It's possible if it happens on a separate thread. A stack trace would be very helpful as well as some of the code you execute to cause this, or as Mike said a repro sample would be the absolute best so we can troubleshoot from our end as well.
... View more
04-22-2020
05:13 PM
|
0
|
0
|
1264
|
|
POST
|
First of all, I'd recommend you keep the versions in sync. If you target 100.6 of the runtime, make the toolkit also use v100.6. That guarantees the greatest compatibility. Wrt to how to declare the compass, see the Compass sample in the repo: axml: https://github.com/Esri/arcgis-toolkit-dotnet/blob/master/src/Samples/Toolkit.SampleApp.Android/Resources/layout/CompassMapViewSample.axml code-behind: https://github.com/Esri/arcgis-toolkit-dotnet/blob/master/src/Samples/Toolkit.SampleApp.Android/Samples/CompassMapViewSample.cs (you can skip the Seekbar slider bit - the samples are really meant to be functional tests and the slider is there to test resizing works correctly)
... View more
04-22-2020
04:55 PM
|
0
|
1
|
2806
|
| 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 |
3 weeks ago
|