|
POST
|
Make sure when you publish to set your runtime identifier to “win10-x64”. This is a change from 100.x where the RID was “win-x64”. Side note: v200.1 will generate a helpful build error if you use an unsupported RID so that you’ll realize this a little easier.
... View more
02-25-2023
08:53 AM
|
1
|
0
|
10441
|
|
POST
|
I'm not quite following the relationship between mapview scale and ZIndex on features on your features and graphics, but having said that, you can only control the ZIndex within a single graphics overlay, and graphics always goes on top of feature layers, so there's no way to have a feature in-between two graphics.
... View more
02-22-2023
01:31 PM
|
1
|
0
|
2870
|
|
POST
|
Does this projection require datum grid transformation? If so, did you supply the projection engine with the data necessary? See https://developers.arcgis.com/net/spatial-and-data-analysis/spatial-references/#grid-based-transformations
... View more
02-14-2023
10:53 AM
|
0
|
0
|
1239
|
|
POST
|
Due to a limitation in both Forms and .NET MAUI we don't have support for custom MAUI XAML content in the callout at this point. You can however do it with the native geo views. For example: (mapView.Handler.PlatformView as Esri.ArcGISRuntime.UI.Controls.MapView).ShowCalloutAt(locations, nativeView); The native view would be a native Android View on Android or a UIView on iOS for instance.
... View more
01-31-2023
01:50 PM
|
0
|
2
|
2325
|
|
POST
|
For points without Z values, make sure you use the overload that doesn't take a Z value. Instead of relying on 0/NaN rely on the HasZ property of the point.
... View more
01-26-2023
10:09 AM
|
0
|
2
|
1981
|
|
POST
|
There is no support for displaying arbitrary vector data. You will need to convert it to a supported spatial format, or rasterize it to a bitmap and georeference that bitmap. KML isn't 3D only. It's just a good in 2D.
... View more
01-25-2023
09:27 AM
|
0
|
1
|
4939
|
|
POST
|
Generally the runtime will auto-discover these for you. The exception is OAuth where you need to provide some of that info up front (like client id etc), but again most of it is loaded for you once you hit that server. What is the reason you're needing the server info?
... View more
01-19-2023
09:08 AM
|
0
|
1
|
1334
|
|
POST
|
That scenario where you are trying to avoid running two apps is exactly why the option is there. However having said that, each receiver works a little different, and needs to be either manually configured correctly up front to receive RTCM and output NMEA, while others need special commands sent to them - each proprietary app knows exactly what to do with their own devices and does all this for you - once you do your own ntrip handling, it is all on you and your app to get this right.
... View more
01-11-2023
01:17 PM
|
1
|
0
|
2182
|
|
POST
|
Did you mean to add the backslash in the tile template? It should just be forward slashes. Also the doc states you need to use the level row and column parameter instead of x y z. That might be why. (If you load the layer, you should get a load error telling you exactly this) Also you don't need the subdomain overload, since you don't have a subdomain in the template uri. So you'd have something like: private readonly string _templateUri = "file:///C:/Users/Zach/Desktop/DEM/XYZ2/{level}/{col}/{row}.png"; This made it work for me. You can also instead implement a custom ImageTiledLayer, which gives you full control of how the image bytes are loaded. It is more work, but gives a lot better control. Example: using Esri.ArcGISRuntime.ArcGISServices;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Mapping;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace CustomTileLayerSample
{
public class LocalTiledLayer : ImageTiledLayer
{
private readonly string _templateUri = "C:\\Users\\Zach\\Desktop\\DEM\\XYZ2\\{0}\\{1}\\{2}.png";
public LocalTiledLayer() : base(CreateTileInfo(), new Envelope(-2.003750722959434E7, -1.997186888040859E7, 2.003750722959434E7, 1.9971868880408563E7, SpatialReferences.WebMercator))
{
}
private static TileInfo CreateTileInfo()
{
List<LevelOfDetail> levels = new List<LevelOfDetail>();
var resolution = 156543.03392800014;
var scale = 5.91657527591555E8;
int levelCount = 24;
for (int i = 0; i < levelCount; i++)
{
levels.Add(new LevelOfDetail(i, resolution, scale));
resolution /= 2; scale/=2;
}
return new TileInfo(96, TileImageFormat.Png32, levels, new MapPoint(-2.0037508342787E7, 2.0037508342787E7, SpatialReferences.WebMercator), SpatialReferences.WebMercator, 256, 256);
}
protected override async Task<ImageTileData> GetTileDataAsync(int level, int row, int column, CancellationToken cancellationToken)
{
var file = string.Format(_templateUri, level, row, column);
if (File.Exists(file))
{
var bytes = await File.ReadAllBytesAsync(file).ConfigureAwait(false);
return new ImageTileData(level, row, column, bytes, "image/png");
}
return new ImageTileData(level, row, column, new byte[] { }, "image/png");
}
}
} You could even take this a step further and generate tiles on the fly: protected override Task<ImageTileData> GetTileDataAsync(int level, int row, int column, CancellationToken cancellationToken)
{
return Task.Run(() =>
{
using var pen = new System.Drawing.Pen(System.Drawing.Color.Black);
using var font = new System.Drawing.Font("Times New Roman", 12);
using var image = new System.Drawing.Bitmap(256, 256);
using var g = Graphics.FromImage(image);
g.DrawString($"{level}/{row}/{column}", font, System.Drawing.Brushes.Black, new PointF(100, 122));
g.DrawLine(pen, 0, 0, 255, 0);
g.DrawLine(pen, 0, 0, 0, 255);
using var filestream = new MemoryStream();
image.Save(filestream, System.Drawing.Imaging.ImageFormat.Png);
return new ImageTileData(level, row, column, filestream.ToArray(), "image/png");
});
}
... View more
01-11-2023
11:27 AM
|
0
|
0
|
2845
|
|
POST
|
Here's the URL: https://esri.github.io//arcgis-maps-sdk-dotnet-toolkit/basemap-gallery.html Do you have a small sample that demonstrates the problem you're seeing? Were you able to enable breakpoints in the error list window to force breaking on caught exceptions?
... View more
01-10-2023
09:44 AM
|
0
|
3
|
1724
|
|
POST
|
The toolkit is already at v200. With respect to LocalServices, this will get released with the v200 of Local Server, but you should be able to use the v100.15 (it just needs to match the version of your local server). Do you have any details on these exceptions? (if it's not hitting a breakpoint, check these types off in the Exceptions settings window in Visual Studio to force a break on the exception).
... View more
01-03-2023
10:06 AM
|
0
|
5
|
1759
|
|
POST
|
Have you tried setting the ViewInsets on the view? MyMapView.ViewInsets = new Thickness(50); This sets up a more "permanent" padding for all zoom operations (it's usually used for when you for instance have a side panel open, and you want to add some padding on just one side where the panel is, so the center of the map is pushed a little over and any zooms would take that left padding into account). You can always reset the insets after the mapview has loaded back to zero. https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.GeoView.ViewInsets.html
... View more
12-16-2022
01:09 PM
|
1
|
1
|
1340
|
|
POST
|
Check out the file download task in the demos repo: https://github.com/Esri/arcgis-runtime-demos-dotnet/blob/main/src/CampusRouting/OfficeLocator.Core/DownloadManager/FileDownloadTask.cs It even supports pause and resume of partial downloads, great if downloads are large, and you get interrupted. It is used by the provisioning helper, which given the itemid, just returns the download path if the data is already on disk: https://github.com/Esri/arcgis-runtime-demos-dotnet/blob/main/src/CampusRouting/OfficeLocator.Core/ProvisionDataHelper.cs#L11
... View more
12-15-2022
03:43 PM
|
0
|
0
|
882
|
|
POST
|
> we have a problem Can you detail what sort of problem you're having?
... View more
12-15-2022
08:49 AM
|
0
|
1
|
1036
|
| 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 |
2 weeks ago
|