POST
|
Hi @stuartkerkhof I tried the repro with 200.2 and you are right it is not working. Apparently it is a bug with FeatureCollectionLayer. I tried the code with GraphicsOverlay and it seems to be working. I don't know your workflow but you could use GraphicsOverlay as alternative solution until the bug is addressed. Here is the code using graphics overlay, if that helps. I will try to bump the priority on fixing issue with FeatureCollectionLayer in a near future release but can't promise anything for sure. private async void addGraphics_Click(object sender, EventArgs e)
{
var _graphicsOverlay = new GraphicsOverlay();
mapview.GraphicsOverlays.Add(_graphicsOverlay);
SolidStrokeSymbolLayer lineSymbol = new SolidStrokeSymbolLayer(1, Color.Black);
List<SymbolLayer> symbolLayers = new List<SymbolLayer>
{
lineSymbol
};
MultilayerPolylineSymbol multilayerPolylineSymbol = new MultilayerPolylineSymbol(symbolLayers);
List<MapPoint> mapPoints = new List<MapPoint>();
MapPoint[] coordinatesArray = new MapPoint[] { new MapPoint(0, 0), new MapPoint(5, 0), new MapPoint(5, 2), new MapPoint(5, -2) };
foreach (MapPoint coordinate in coordinatesArray)
{
mapPoints.Add(coordinate);
}
VectorMarkerSymbolElement symLyrEl = new VectorMarkerSymbolElement(new Polyline(mapPoints), multilayerPolylineSymbol);
List<VectorMarkerSymbolElement> vectorMarkerSymbolElements = new List<VectorMarkerSymbolElement>();
//add custom element to vectormarker symbol
vectorMarkerSymbolElements.Add(symLyrEl);
SimpleMarkerSymbol pointSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.Circle, Color.Transparent, 5)
{
Color = Color.Transparent,
Outline = new SimpleLineSymbol(SimpleLineSymbolStyle.Solid, Color.Black, 1)
};
pointSymbol.Style = SimpleMarkerSymbolStyle.Circle;
MultilayerPointSymbol multilayerPointSymbol = pointSymbol.ToMultilayerSymbol();
VectorMarkerSymbolElement vectorMarkerSymbolElement = new VectorMarkerSymbolElement(new MapPoint(0, 10), multilayerPointSymbol);
//add circle symbol to vectormarker symbol
vectorMarkerSymbolElements.Add(vectorMarkerSymbolElement);
VectorMarkerSymbolLayer symLyr = new VectorMarkerSymbolLayer(vectorMarkerSymbolElements);
List<VectorMarkerSymbolLayer> vectorMarkerSymbolLayers = new List<VectorMarkerSymbolLayer>();
vectorMarkerSymbolLayers.Add(symLyr);
MultilayerPointSymbol sym = new MultilayerPointSymbol(vectorMarkerSymbolLayers)
{
AngleAlignment = SymbolAngleAlignment.Map,
};
var sr = SpatialReference.Create(4839);
var map = new Map(sr);
map.ReferenceScale = 445;
mapview.Map = map;
var UVrenderer = new UniqueValueRenderer()
{
RotationExpression = "[RotationField]",
RotationType = RotationType.Arithmetic,
};
UVrenderer.FieldNames.Add("Asset_Type");
UVrenderer.UniqueValues.Add(new UniqueValue("Asset_Type", "Asset_Type", sym, "whatever"));
UVrenderer.DefaultSymbol = new SimpleMarkerSymbol(style: SimpleMarkerSymbolStyle.Cross, Color.Red, size: 10);
Graphic g1 = new Graphic();
g1.Geometry = new MapPoint(0, 0);
g1.Attributes["RotationField"] = 140;
g1.Attributes["Asset_Type"] = "whatever";
_graphicsOverlay.Graphics.Add(g1);
Graphic g2 = new Graphic();
g2.Geometry = new MapPoint(0, 0);
g2.Attributes["RotationField"] = 140;
g2.Attributes["Asset_Type"] = "whatever2";
_graphicsOverlay.Graphics.Add(g2);
_graphicsOverlay.Renderer = UVrenderer;
_graphicsOverlay.RenderingMode = GraphicsRenderingMode.Dynamic;
_graphicsOverlay.ScaleSymbols = true;
}
... View more
a week ago
|
0
|
1
|
27
|
POST
|
For WPF , you can create two types of application : WPF using .NET Framework or WPF using .NET. These are two different frameworks for creating a WPF app. I was suggesting to create a WPF application targeting .NET. Red circled ones are Microsoft's template for 1) WPF .NET and 2) WPF using .NET Framework. I was suggesting to use either the Maps SDK template( highlighted in blue) or the one I checked in image below. Blue is ArcGIS Maps SDK template for WPF .NET SDK templates can be installed from within Visual Studio. See https://developers.arcgis.com/net/install-and-set-up/#install-the-visual-studio-project-templates-optional for more info.
... View more
03-08-2024
03:36 PM
|
0
|
0
|
201
|
POST
|
Creating point cloud layer can not be done in ArcGIS Maps SDK for .NET using Rest APIs. If you want to publish it programmatically you need use an ArcGIS Pro Geoprocessing Tool called `Create Point Cloud Scene Layer Content (Data Management)`. Once you have the output .slpk you can use it in your .NET SDK app and add it to scene. https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-point-cloud-scene-layer-package.htm
... View more
03-08-2024
09:25 AM
|
0
|
1
|
112
|
POST
|
Is it a WPF Framework app? If yes, try a WPF .NET app.
... View more
03-08-2024
09:07 AM
|
0
|
1
|
231
|
POST
|
The fix is planned for upcoming 200.4 release in mid April.
... View more
02-02-2024
08:25 AM
|
0
|
0
|
411
|
POST
|
I am not following what you mean by : >When I inspect raw values from code I see 0.1471 and 0.0735. The raw values I am seeing are in meters Are you saying when you inspect the access the symbol from layer renderer , get the symbollayer and fetch the GeometericEffect and the dash template values you are seeing these values?
... View more
01-23-2024
06:46 PM
|
0
|
1
|
122
|
POST
|
I don't have a good solution for you. But I know ArcGIS Pro treats the values in points and SDK expects DIPS. So if I take values you mentioned above convert points to DIPs, I get something like ``` dashEffect.DashTemplate.Add(10*1.33); dashEffect.DashTemplate.Add(6*1.33); strokeLayer.GeometricEffects.Add(dashEffect); ``` If you are reading from data sources that are not yet supported in ArcGIS Maps SDK you will have to add some extra logic in your app to adjust the symbology to match the original data symbology. Note, in some cases it might not be possible at all but for something like dashes you can try tweaking the dash template. Hope this helps.
... View more
01-17-2024
02:51 PM
|
0
|
3
|
575
|
POST
|
When you open the data in Pro, what values do you see in DashEffects for the symbology that you think is correctly rendered?
... View more
01-10-2024
07:23 PM
|
0
|
1
|
674
|
POST
|
ArcGIS pro supports reading CAD data and perhaps has the capability to read and render it correctly. I am not sure how you are reading and rendering the data in an ArcGIS Maps SDK app, but you could create symbols via MultilayerSymbol APIs and adjust the dash lengths and gaps by applying GeometricEffects on the multilayer polyline symbol. Here is a public sample demonstrating different line style created via MultilayerPolyline symbol. Hope this helps.
... View more
01-09-2024
05:30 PM
|
0
|
0
|
771
|
POST
|
Thanks for reporting the issue. We have logged the bug in our bug tracking system as high priority.
... View more
01-08-2024
09:42 AM
|
0
|
0
|
666
|
POST
|
I highly appreciate you providing feedback and finding bugs. As @MatveiStefarov mentioned we logged this bug in our system but unfortunately was not prioritized for a near future release due to many other factors. We try our best to help the community and our users and triage issues as soon as possible but we cannot commit a fix until a bug is prioritized. If the bug is super critical for your workflow, blocks further development or affects lot of customers, I highly recommend contacting esri Technical Support and log a bug through them. That way you can request to escalate it, if needed. Thanks for understanding 🙂 Preeti
... View more
01-05-2024
04:04 PM
|
0
|
0
|
292
|
POST
|
Thanks for reporting it to us, I am able to reproduce the issue and have a logged a bug in our system. We will investigate it further next week. I will report back here if we find a way to workaround the crash.
... View more
12-28-2023
11:06 AM
|
1
|
1
|
682
|
POST
|
I suspect you might be missing Microsoft Visual C++ 2015-2022 Redistributable on other machines. See system requirements for app deployment. https://developers.arcgis.com/net/reference/system-requirements/#prerequisites-1
... View more
12-19-2023
11:08 AM
|
1
|
0
|
260
|
POST
|
Also, in the meantime if you can prepare and share some test data that we could use, that will be very helpful for us to get to the bottom of the issue. Let me know. Thanks.
... View more
12-13-2023
02:10 PM
|
0
|
0
|
252
|
Title | Kudos | Posted |
---|---|---|
1 | 12-28-2023 11:06 AM | |
1 | 12-19-2023 11:08 AM | |
1 | 11-08-2023 10:41 AM | |
2 | 11-07-2023 12:11 PM | |
1 | 11-01-2023 05:07 PM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|