POST
|
ArcGIS Maps SDK for Native Apps does not support drawing leader lines in balloon callouts. This feature is listed as one of the candidate for consideration for a future release but I don't have a definitive timeline when this will be available. I will add your request to our internal issue.
... View more
12-04-2024
05:20 PM
|
0
|
0
|
378
|
IDEA
|
I am excited to announce availability of Clustering/FeatureReduction for point Featurelayers and Graphics in ArcGIS Maps SDKs for Native Apps. The initial support to draw point features as clusters was added back in version 200.2 of ArcGIS Maps SDKs for Native Apps. In subsequent releases we highly enhanced clustering support to cover most common and popular workflows as listed below:
Define rendering for clusters
Define labels for clusters
Configure popups on clusters
Set a clustering radius
Add aggregate or summary fields
Define min/max sizes for cluster symbols
Set a scale threshold for clustering
Here are links to Clustering functionality released in progression over releases listed below. To make use of full clustering support make sure you install latest version of ArcGIS Maps SDK for Native Apps on a platform of your choice and make use of this powerful feature to develop beautiful apps. https://developers.arcgis.com/net/release-notes/prior-releases/release-notes-for-200-2/#support-for-clustering-of-point-features
https://developers.arcgis.com/net/release-notes/prior-releases/release-notes-for-200-3/#feature-reduction
https://developers.arcgis.com/net/release-notes/prior-releases/release-notes-for-200-4/#clustering-support-for-graphicsoverlay
Here are a few samples for reference: https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/Layers/DisplayClusters https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/Layers/ConfigureClusters
... View more
11-07-2024
09:26 AM
|
0
|
0
|
301
|
POST
|
Ok, I guess I understand the problem you are running into. The problem is setting configuration to `Ordered Anchor Points` without actual control points. The purpose of this configuration is to draw the graphic or feature using the specified control points based as geometry and the correct symbol is returned. In this case it is important that geometry passed should have correct number of control points as defined in the standard. Since you are just trying to get a swatch and there are no features or graphics being drawn, there are two options you can choose from. Both approaches listed below are just ideas and are not a resolution to your issue. - If you want to just get a symbol for an sidc you could try to NOT set `Ordered Anchor points` configuration. That way stylx can return you the base template symbol. But, caveat here is base template may not look like actual symbol.
- If you do want the exact symbol then you should use CreateSwatchAsync() overload that takes a geometry and for that geometry you should pass in a polyline with right number of control points. Note, I have only tried `10012500003401000000` from App6d which looked and haven't tested more complex symbols. There could be issues with this approach as well and you need to know the right number of control points, define the right coordinates and right geometry type. So this is not simple either.
try
{
DictionarySymbolStyle symbolStyle = await DictionarySymbolStyle.CreateFromFileAsync("C:\\Program Files\\ArcGIS\\Pro\\Resources\\Dictionaries\\app6d\\app6d.stylx");
var cf = symbolStyle.Configurations.ToList().Find(cn => cn.Name == "model");
if (cf != null)
cf.Value = "ORDERED ANCHOR POINTS";
Dictionary<string, object> attributes = new Dictionary<string, object>
{
{ "sidc", 10012500003401000000 }
};
IList<MapPoint> mps= new List<MapPoint>();
mps.Add(new MapPoint(30, 10));
mps.Add(new MapPoint(30, -10));
mps.Add(new MapPoint(-30, 0));
Esri.ArcGISRuntime.Geometry.Polyline mlp = new Esri.ArcGISRuntime.Geometry.Polyline(mps);
Symbol symbol = await symbolStyle.GetSymbolAsync(attributes);
RuntimeImage image = await symbol.CreateSwatchAsync(90, 90, 96, Color.Black,mlp);
swatch.Source = await image.ToImageSourceAsync();
}
... View more
10-23-2024
06:01 PM
|
0
|
1
|
840
|
POST
|
Based on your description, Option 1 aligns more closely to your workflow. If you need to sync data via sync capabilities then that's your best bet. Another option to use MMPKs for different areas that are loaded as needed but this will require manually updating the data to server every time boat is returned. It won't have that auto-sync option to sync data back to server.
... View more
10-18-2024
07:55 AM
|
0
|
1
|
454
|
POST
|
Is the first one swatch/image using 200.4 and second image from 200.5 swatch? I am trying to reproduce the behavior using App6d and the sidc code you provided and I am getting following swatch image
try
{
DictionarySymbolStyle symbolStyle = await DictionarySymbolStyle.CreateFromFileAsync("C:\\Program Files\\ArcGIS\\Pro\\Resources\\Dictionaries\\app6d\\app6d.stylx");
var cf = symbolStyle.Configurations.ToList().Find(cn => cn.Name == "model");
if (cf != null)
cf.Value = "ORDERED ANCHOR POINTS";
Dictionary<string, object> attributes = new Dictionary<string, object>
{
{ "sidc", 10012500003423000000 }
};
Symbol symbol = await symbolStyle.GetSymbolAsync(attributes);
RuntimeImage image = await symbol.CreateSwatchAsync(90, 90, 96, Color.Black);
swatch.Source = await image.ToImageSourceAsync();
}
catch (Exception ex)
{
}
}
I think I need a more concrete repro sample so I can better assist you.
... View more
10-15-2024
01:52 PM
|
0
|
0
|
887
|
POST
|
Using a stylx seems the most reasonable approach especially if there are complex symbols are involved.
... View more
10-15-2024
01:32 PM
|
0
|
0
|
418
|
POST
|
Hi, I reached out to raster SME on my team and he was able to use the code you provide. The only difference being parameters are added before the mosaic raster is loaded and before setting the Raster. Also need to set the Filter on the AddRasterParameters object. Here is the sample code he used that worked as expected.
MosaicDatasetRaster rasterMosaic = MosaicDatasetRaster.Create(@"c:\gtiff\mosaic.sqlite", "mosaic_rasters", SpatialReferences.Wgs84);
AddRastersParameters parameters = new()
{
InputDirectory = @"c:\gtiff\images",
Filter = ".*tif"
};
await rasterMosaic.AddRastersAsync(parameters);
RasterFunction rasterFunction = RasterFunction.FromJson(
@"
{
""raster_function"":{""type"":""Mask_function""},
""raster_function_arguments"":
{
""nodata_values"":
{
""double_array"":[255, 255, 255, 0],
""type"":""Raster_function_variable""
},
""nodata_interpretation"":
{
""nodata_interpretation"":""all"",
""type"":""Raster_function_variable""
},
""raster"":
{
""name"":""raster"",
""is_raster"":true,
""type"":""Raster_function_variable""
},
""type"":""Raster_function_arguments""
},
""type"":""Raster_function_template""
}"
);
IReadOnlyList<string> myRasterNames = rasterFunction.Arguments.GetRasterNames();
rasterFunction.Arguments.SetRaster(myRasterNames[0], rasterMosaic);
RasterLayer rasterLayer = new(new Raster(rasterFunction))
{
Opacity = 0.5
};
Map.OperationalLayers.Add(rasterLayer);
er.
... View more
10-02-2024
03:13 PM
|
0
|
0
|
474
|
POST
|
Nothing jumps out to me why would `createSwatch` be different in 200.4. No changes went in on that front, but I am happy to take a look. Can you please share the SIDC code and the two images before and after 200.4 so I can see what is the difference? Also another reason could the version of App6D is outdated. Where did you get the App6D stylx file from that is used in your app?
... View more
10-02-2024
11:36 AM
|
0
|
1
|
972
|
POST
|
Hello,
The behavior you are seeing with military symbols, where text gets rotated based on rotation of the map to always read from left to right is driven by flipAngle property on CIM marker symbol.
That property is currently not available of TextSymbol at the moment and you will have to use CIM symbol for this behavior. Currently based on ArcGISPRO flipAngle can either be a 0 or greater value (most of the times it is 1). If a CIM symbol has no flipAngle property it is considered as value 0. 0 means : do not apply flipAngle property Greater than 0 means: apply flipAngle property
However, I am interested in learning and understanding your usecase for using TextSymbol. Is there a a specific reason you want to use a simple TextSymbol instead of a CIM symbol?
Thanks
... View more
09-30-2024
10:03 AM
|
0
|
1
|
491
|
POST
|
I am unable to reproduce the problem with latest version of ArcGIS Maps SDK for .NET version 200.6.
... View more
09-12-2024
10:54 AM
|
0
|
0
|
289
|
POST
|
@esp1rl , ArcGIS Maps SDK for .NET was released mid of August 2024. Were you able to test your workflow with the latest version? If yes, is it working as expected?
... View more
09-12-2024
09:52 AM
|
0
|
0
|
745
|
POST
|
Nothing changed in regards to how apps need to be configured for OAuth. In fact `Redirect URLs` were always required. With just description of the issue I can't tell what could be going wrong but I do have a few questions : What version on Maps SDK for .NET are you using? What UI framework are you using, WPF, .NET MAUI, WinUI?Is the new OAuth app created on same org/portal as your original OAuth app? Did you implement any credential persistence in your app? If you haven't done so, I suggest creating a new simple app just to access the data using new OAuth. You can use the solution in this tutorial to set it up quickly. .NET MAUI: https://developers.arcgis.com/net/security-and-authentication/tutorials/access-services-with-oauth-2-0-maui/ WPF: https://developers.arcgis.com/net/security-and-authentication/tutorials/access-services-with-oauth-2-0/
... View more
09-11-2024
12:39 PM
|
0
|
0
|
377
|
POST
|
Although it is not supported at the moment, but this is an interesting usecase and I would like to learn more about your workflow and how do you intend to use text symbols from stylx in your Native app. Looking forward to hear about your workflow. Thanks
... View more
09-04-2024
11:31 AM
|
0
|
0
|
525
|
POST
|
ArcGIS Maps SDK for Native apps only support line, point and polygon symbols from a stylx. Stylx containing other types of symbols or elements is currently not supported and is expected to return empty results.
... View more
09-03-2024
09:43 AM
|
0
|
0
|
559
|
POST
|
Thanks for reporting the issue, I am able to reproduce the problem. I have logged an internal issue and will investigate this shortly. Thanks, Preeti
... View more
08-19-2024
11:09 AM
|
0
|
1
|
516
|
Title | Kudos | Posted |
---|---|---|
1 | 04-14-2025 10:39 AM | |
1 | 12-17-2024 01:28 PM | |
1 | 01-16-2025 02:56 PM | |
1 | 12-26-2024 11:08 AM | |
1 | 12-19-2024 11:49 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|