|
POST
|
@AndeBell , we have fixed the bug and it will be publicly available in upcoming 200.5 release scheduled sometime in mid August. Once again, thank you for reporting the issue.
... View more
06-18-2024
06:46 PM
|
0
|
0
|
583
|
|
POST
|
There is no blending capability yet but you can mosaic multiple rasters. See https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/Layers/ApplyMosaicRule for reference. Hope this helps.
... View more
06-14-2024
03:54 PM
|
0
|
0
|
416
|
|
POST
|
Thanks for reporting the issue and providing a clean reproducer. We will look into this further shortly and report back once I have more info.
... View more
06-03-2024
08:39 PM
|
0
|
0
|
637
|
|
POST
|
I should have asked earlier how are you creating the symbols for the graphics. I believe you are using multilayer symbol. If not, then I recommend using Multilayer symbol for the graphic using the example provided below. If you are already using Multilayer symbol then choosing the right color for the bottommost stroke symbol layer and not having to apply any additional transparency should work for your use case. If you need additional transparency you can set it GraphicOverlay. overlay.Opacity = 0.8; Below are two images I captured with code snippet below. First one is GraphicsOverlay with 0.8 opacity and second one is without opacity. var overlay = new GraphicsOverlay();
polylineBuilder = new PolylineBuilder(SpatialReferences.Wgs84);
polylineBuilder.AddPoint(new MapPoint(-30, 20, SpatialReferences.Wgs84));
polylineBuilder.AddPoint(new MapPoint(30, 20, SpatialReferences.Wgs84));
polylineBuilder.AddPoint(new MapPoint(-30, -20, SpatialReferences.Wgs84));
polylineBuilder.AddPoint(new MapPoint(30, -20, SpatialReferences.Wgs84));
var tranpstrokeLayer = new SolidStrokeSymbolLayer(20, Color.Gray);
tranpstrokeLayer.CapStyle = StrokeSymbolLayerCapStyle.Round;
strokeLayer = new SolidStrokeSymbolLayer(3, Color.White);
strokeLayer.CapStyle = StrokeSymbolLayerCapStyle.Round;
dashEffect = new DashGeometricEffect();
dashEffect.DashTemplate.Add(7);
dashEffect.DashTemplate.Add(9);
dashEffect.DashTemplate.Add(0.5);
dashEffect.DashTemplate.Add(9);
strokeLayer.GeometricEffects.Add(dashEffect);
lineSymbol = new MultilayerPolylineSymbol(new List<SymbolLayer> { tranpstrokeLayer,strokeLayer });
var dashDotGraphic = new Graphic(polylineBuilder.ToGeometry(), lineSymbol);
overlay.Graphics.Add(dashDotGraphic); Few resources: https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/Symbology/RenderMultilayerSymbols https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.MultilayerSymbol.html https://developers.arcgis.com/net/styles-and-data-visualization/symbols-renderers-and-styles/ Hope this helps.
... View more
05-10-2024
02:36 PM
|
0
|
0
|
1011
|
|
POST
|
I don't think there is currently any way to avoid the dark shaded area caused by overlapping in Native SDK. I was comparing Native SDK behavior with ArcGIS Pro and noticed that in ArcGIS Pro single feature does not cast shadow but multiple features will result in overlap shadows. Image above is from ArcGIS Pro that shows that if it is one geometry , it displays without overlaps at connecting vertices but if there are different geometries , it would cause the darker shade at overlaps. Unfortunately it is not same in Native SDKs. I will look further and see if something can be done in Native SDKs to achieve the same behavior. I will also log an issue internally for us to look into this further. If I find any workarounds I will let you know. Thanks, Preeti
... View more
05-09-2024
10:22 AM
|
0
|
1
|
1044
|
|
POST
|
Can't really tell from the logs what's going wrong and without knowing the app workflow or repro code its difficult to investigate further. I understand you can't provide your application code. Perhaps you can try creating a new app using .NET Maps SDK template and use the same map that you are trying to load in your app and see if that deploys on devices you are seeing a crash. If it doesn't then I suspect something in the app is triggering the crash. If you can create a consistent reproducible app, I will be more than happy to look at it further.
... View more
04-29-2024
01:16 PM
|
0
|
0
|
1325
|
|
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
04-10-2024
12:45 PM
|
0
|
2
|
1163
|
|
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
|
1741
|
|
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
|
902
|
|
POST
|
Is it a WPF Framework app? If yes, try a WPF .NET app.
... View more
03-08-2024
09:07 AM
|
0
|
1
|
1771
|
|
POST
|
The fix is planned for upcoming 200.4 release in mid April.
... View more
02-02-2024
08:25 AM
|
0
|
0
|
2315
|
|
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
|
804
|
|
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
|
4354
|
|
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
|
4453
|
| 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 |
a week ago
|