|
POST
|
Not at the symbol level no. You'd have to do it on top (or frequently update the properties of a symbol to create the illusion of animation). Also see Control Template in 100.x runtime sdk
... View more
02-06-2020
03:51 PM
|
0
|
0
|
1272
|
|
POST
|
Oh right! I forgot you have to create it async. Sorry. Just use the deprecated method for now. It'll still work 🙂 Also after double checking you're right this was introduced in 100.7, not 100.3. My bad! I got down the wrong path in the git history.
... View more
02-03-2020
12:55 PM
|
2
|
1
|
1591
|
|
POST
|
Joe Hershman It appears this change was done in May 2017, so many versions ago (100.3 I think?), and you should see the same thing in 100.6. Note that you don't need to load the task to perform the import - you don't even need a valid URL. It's a mistake in the API that you just pointed out (thank you for that!). So there's actually an API bug here. For now I'd recommend you use: new GeodatabaseSyncTask("").ImportDeltaAsync(geodatabaseInstance, pathToDelta) This will under the covers actually call the correct code path, and we'll have a better static method available for Update 8.
... View more
02-03-2020
12:08 PM
|
0
|
3
|
1591
|
|
POST
|
The doc is incorrect. There's a challenge handler in the preview package, but this one doesn't handle OAuth yet: arcgis-toolkit-dotnet/ChallengeHandler.cs at master · Esri/arcgis-toolkit-dotnet · GitHub Instead see the sample app: arcgis-runtime-samples-dotnet/OAuth.xaml.cs at a3aad07afa1a29fece692648e2337ed1c0de7118 · Esri/arcgis-runtime-samples-do…
... View more
02-03-2020
10:29 AM
|
0
|
0
|
1134
|
|
POST
|
If I can ask a silly question: If you're going to do the work to upgrade from 10.2.x to 100.x, why go with the older 100.3 and not the recent 100.7 ? While it might have more features than you need, it also has a lot of bug fixes and performance improvements.
... View more
02-01-2020
08:52 PM
|
0
|
1
|
2975
|
|
POST
|
With ENC you control visibility via the display settings, and not on a feature-by-feature basis ArcGIS Runtime SDK for .NET - WPF API Reference | ArcGIS for Developers
... View more
02-01-2020
08:46 PM
|
0
|
0
|
1475
|
|
POST
|
Since this is Android only, are you sure that file is in that path you provided? What does File.Exists(...) return? Does your app allow you to read from that location? (Try File.Open(...)). How did you get the file onto the Android device? (Note that Android doesn't support the convenient 'Content' build action that iOS and UWP does) This resource might also be helpful: File access on external storage with Xamarin.Android - Xamarin | Microsoft Docs (and yes the error could be better - we're working on that)
... View more
01-30-2020
12:56 PM
|
0
|
0
|
2498
|
|
POST
|
Due to the huge performance hit those symbols had, they weren't shareable within the runtime platform and the entire engine is completely DirectX based with no (slow) XAML, this feature did not get added to the 100.x release. You can however still generate symbols based on bitmaps (use PictureMarkerSymbol)
... View more
01-30-2020
10:03 AM
|
0
|
1
|
1401
|
|
POST
|
Here's a quick and dirty implementation that should work: using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
namespace WpfApp5
{
public class OpenStreetMapLayer2 : TiledLayer, ICopyright
{
private const double WebMercatorCorner = 20037508.3427892;
private const string UserAgentName = "ArcGISRuntime-NET";
private const string UserAgentVersion = "10.2";
private static readonly string[] SubDomains = { "a", "b", "c" };
private static readonly TiledLayerInitializationInfo tileInfo;
private static readonly HttpClient client;
static OpenStreetMapLayer2()
{
var envelope = new Envelope(-WebMercatorCorner, -WebMercatorCorner, WebMercatorCorner, WebMercatorCorner, SpatialReferences.WebMercator);
double scale = 156543.03392804062;
double resolution = scale * 96.0 * 39.37;
Lod[] lods = new Lod[19];
for (int i = 0; i < lods.Length; i++)
{
lods[i] = new Lod(scale, resolution);
scale /= 2.0;
resolution /= 2.0;
}
tileInfo = new TiledLayerInitializationInfo(256, 256, -WebMercatorCorner, WebMercatorCorner, envelope, 96, lods);
client = new HttpClient(new WebRequestHandler()
{
AutomaticDecompression = System.Net.DecompressionMethods.GZip | System.Net.DecompressionMethods.Deflate,
CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.Default)
});
client.DefaultRequestHeaders.UserAgent.Add(new System.Net.Http.Headers.ProductInfoHeaderValue(UserAgentName, UserAgentVersion));
}
string ICopyright.CopyrightText => "Map data © OpenStreetMap contributors, CC-BY-SA";
protected override Task<TiledLayerInitializationInfo> OnInitializeTiledLayerRequestedAsync() => Task.FromResult(tileInfo);
protected override async Task<ImageTileData> GetTileDataAsync(int level, int row, int column, CancellationToken cancellationToken)
{
using (var response = await client.GetAsync(CreateUri(level, row, column), cancellationToken).ConfigureAwait(false))
{
using (var content = response.EnsureSuccessStatusCode().Content)
{
return new ImageTileData() { Column = column, Row = row, Level = level, ImageData = await content.ReadAsByteArrayAsync().ConfigureAwait(false) };
}
}
}
private static string CreateUri(int level, int row, int column)
{
string subdomain = SubDomains[(level + column + row) % SubDomains.Length];
return $"http://{subdomain}.tile.openstreetmap.org/{level}/{column}/{row}.png";
}
}
}
... View more
01-23-2020
11:04 AM
|
0
|
0
|
2770
|
|
POST
|
As mentioned in the other thread, I believe your only option then is to build your own OpenStreetMap layer that downloads the tiles with a user agent.
... View more
01-23-2020
10:30 AM
|
0
|
1
|
2770
|
|
POST
|
The issue is addressed in the 100.x releases. The 10.2.x release is no longer supported, and will not be seeing any updates, patches or hotfixes.
... View more
01-21-2020
10:46 PM
|
0
|
3
|
2770
|
|
POST
|
You should be publishing a route service using ArcGIS Server instead. ArcGIS Runtime cannot be used in a server process.
... View more
01-21-2020
02:16 PM
|
0
|
0
|
830
|
|
POST
|
Since .NET Core is only supported on Windows Desktop and relies on WindowsBase, make sure you use the enable those features in your project. In .csproj, set the project SDK to: <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> You might also have to declare <UseWpf>true</UseWpf> in a property group.
... View more
01-21-2020
11:30 AM
|
0
|
1
|
1875
|
|
POST
|
Sorry I don't have any source code like that, which is why I provided you with some resources you could start with instead.
... View more
01-19-2020
11:01 PM
|
0
|
0
|
1793
|
|
POST
|
We've actually profiled this a while ago, and most of the overhead is in the projection, not the interop or object creation. There's a lot going on to get very accurate transformations and handle intersections with the horizon of each projection and a bunch of other stuff I can't even begin to understand :-). Generally that's the reason you'll see it perform slower compared to many simpler projection engines, simply because it is far more accurate and perform far more operations. By all means, if the engine you're already using does a sufficient job for your specific use-case, just stick with that one.
... View more
01-17-2020
04:55 PM
|
1
|
1
|
2885
|
| 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 |
4 weeks ago
|