|
POST
|
This is most likely an issue with extent of data in published MMPK. Does it correct itself if you pan or zoom slightly? I am happy to look into more if you can provide the test app and the data.
... View more
02-20-2025
03:29 PM
|
0
|
3
|
844
|
|
POST
|
I believe this should work, I don't see anything in the script that can't be handled by Arcade Evaluation support in native SDKs. Did you run into any issue?
... View more
01-16-2025
02:56 PM
|
1
|
1
|
577
|
|
POST
|
Hi Justin, We are curious to try this approach in house. Would like to know what tool you are using to generate the .msi or the final setup project?
... View more
01-13-2025
04:13 PM
|
0
|
0
|
1264
|
|
POST
|
ArcGIS Maps SDK for Native apps do not support SVG symbols. One possible alternative is to use this online tool to convert SVG to CIM https://utility.arcgisonline.com/arcgis/rest/services/Utilities/Symbols/SymbolServer/generateSymbol Once you get CIM json you can directly create a symbol by passing CIM json to Symbol.FromJson() https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.Symbol.FromJson.html Hope this helps!
... View more
12-26-2024
11:08 AM
|
1
|
1
|
588
|
|
POST
|
That's a very valid workflow and use-case. There are no current plans to add this support in recent future but the idea to enable editing data in an MMPK is under consideration. Here is ArcGIS Idea I am referring to : https://community.esri.com/t5/arcgis-maps-sdks-native-ideas/ability-to-edit-non-sync-enabled-mmpk/idi-p/932584 for the similar workflow as yours. I would recommend up voting to increase the priority of the use case. I will also add the information you have provided to our internal issue. Unfortunately, at the moment there are no hacks or workarounds available around enabling MMPKs. If I find something I will definitely let you know. Thanks for reaching out and sharing your ideas.
... View more
12-19-2024
11:49 AM
|
1
|
0
|
1228
|
|
POST
|
I understand that you have defined a renderer in ArcGIS pro and published an MMPK and would like to edit the data, and as you have noted, this is currently not possible. Data in MMPKs is read only. The easiest workflow would be create an independent mobile Geodatabase for runtime use. You should be able to edit the data in a mobile geodatabase and share edits across. Mobile geodatabases are editable. They are designed to store, query, and manage both spatial and nonspatial data, and they support both viewing and editing. This allows for offline editing workflows that do not require a feature service. In regards to symbolizing the data, you can add logic to define a renderer in your client app. You can actually copy the renderer json from MMPK by unzipping it and then use Renderer.FromJson() to create a renderer and apply it to the layer. Hope this helps!
... View more
12-18-2024
04:45 PM
|
0
|
2
|
1248
|
|
POST
|
>The question is why it has perfectly worked at 200.4 and doesn't not at 200.5+... Not sure if I am following where the gap is. With my code above I see no differences in 200.4 and 200.5. The only thing I can think of is perhaps your stylx version is older? In 200.5 , We did update our CIM support to version 3.3, see release notes for reference https://developers.arcgis.com/net/release-notes/prior-releases/release-notes-for-200-5/#cartographic-information-model-cim-specification I am using stylx files shipped with ArcGIS Pro 3.3. Happy to help further if you can send simple reproducer your stylx.
... View more
12-17-2024
01:28 PM
|
1
|
0
|
891
|
|
POST
|
I am going to first start by asking what version of .NET Maps SDK are you using? There have been a few location related fixes in past couple releases. I recommend using latest version (200.6) of .NET Maps SDK to test this.
We also have a tutorial on display device tutorial for .NET MAUI that talks about enabling location in .NET MAUI Applications. Tutorial provides step-by-step directions to create an app or you can download the solution and try it yourself. Tutorial also provides information about required permission that might be helpful for iOS and Android. I think you need following two added to the Android manifest.
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
There is a section on iOS permissions on that tutorial that will provide guidance on setting up iOS permissions.
If you still encounter an issue, provide us a reproducible case and I will be more than happy to take a look.
Hope this helps,
Preeti
... View more
12-06-2024
01:39 PM
|
2
|
10
|
4124
|
|
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
|
652
|
|
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
|
481
|
|
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
|
1148
|
|
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
|
633
|
|
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
|
1195
|
|
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
|
607
|
|
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
|
595
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 09-04-2025 04:44 PM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|