|
POST
|
Hi, If you are using a published feature layer, this can be achieved by setting VisualVariables on the layer before publishing the layer. VisualVariable info gets baked into layer's renderer info. For more info please refer to ArcGIS Pro documentation on how to achieve this https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/vary-symbology-by-color.htm Once you apply the visual variable on the layer renderer, the color will get dynamically calculated based on the expression and runtime will honor the color based on expression at render time . Currently there is no API to update or set these dynamic visual variable via Runtime SDKs. Hopefully sometime in near future. If `Today` is not a dynamic value then you can achieve this via Runtime SDK by setting a UniqueValueRenderer, but looking at your use case it looks like that `TODAY` is perhaps a dynamic value that changes everyday. Hope this helps.
... View more
05-16-2022
11:36 AM
|
0
|
1
|
1312
|
|
POST
|
Hello @StephM Currently RotationExpression only accepts a fieldname or a value. It is not equipped to accept an arcade expression. I don't know your use case but an alternate is to set rotation using an arcade expression on your data (in ArcGIS Pro) and publish that data with visual variable. Visual variable on renderers are honored in runtime and you will be able to see custom expression applied on the features. Here are some helpful resources: https://pro.arcgis.com/en/pro-app/2.7/help/mapping/layer-properties/vary-symbology-by-rotation.htm https://developers.arcgis.com/documentation/mapping-apis-and-services/visualization/data-driven-styles/visual-variables/#:~:text=Visual%20variables%20are%20a%20set,from%20a%20field%20or%20expression. Hope this helps.
... View more
05-04-2022
03:57 PM
|
0
|
2
|
2114
|
|
POST
|
Try passing the exact field name in square brackets like [SYMB_ROTATION]
... View more
05-02-2022
11:00 AM
|
0
|
0
|
2144
|
|
POST
|
Here you go Eric, https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.SketchStyle.html
... View more
03-15-2022
02:12 PM
|
0
|
0
|
1702
|
|
POST
|
Hi Mark, Thanks for reporting the problem. With the repro data , I can reproduce the problem at my end as well. have created an internal issue to look into this regression. Thanks, Preeti
... View more
03-14-2022
11:16 AM
|
0
|
0
|
1285
|
|
POST
|
Hi Jeremy, We understand and acknowledge the trouble you are facing with layer loading errors. We have an issue in our backlog to improve the error reporting mechanism. I have added this use case to our issue. There is no timeline yet when we will add this support but more use cases like this definitely help us prioritize them more critically. Thanks, Preeti
... View more
03-14-2022
10:44 AM
|
1
|
1
|
1607
|
|
POST
|
Hi, You can access stylx file created from ArcGIS Pro 2.8.3 using SymbolStyle.OpenAsync() method. See https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.SymbolStyle.html See a working sample that opens a stylx file: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/278bdad17a79148e77841efac878908d321631ca/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Symbology/SymbolsFromMobileStyle ``` SymbolStyle ss = await SymbolStyle.OpenAsync("PathToStyleFile"); ``` Thanks, Preeti
... View more
11-18-2021
09:30 AM
|
0
|
0
|
1304
|
|
POST
|
Hi, Try setting the local raster i.e "myRaster" raster object in code above , to null as well. It might be raster object that is perhaps locked. Thanks
... View more
10-29-2021
08:48 AM
|
0
|
1
|
2598
|
|
POST
|
Hi, In Runtime, you can create a Graphic with text symbol with a fill background with something like following : var textGraphic = new Graphic(new MapPoint(0, 2, SpatialReferences.Wgs84));
textGraphic.Symbol = new TextSymbol() { Text = "Simple", Color = Color.Red, Size = 25, BackgroundColor = Color.Yellow }; Above code will add a graphic that looks like image below: Or you can create a renderer with this symbol and apply renderer to the graphicsOverlay. But if you are looking at using different background for different text graphics based on some attribute, I am afraid that it is currently not supported. We do have this feature listed in our future candidates. I will add your use case to our backlog issue and would appreciate if you could you please share your requirement and specific workflow with as much details as possible. An elaborate workflow adds more some weight to the feature and help us prioritize it. Thanks, Preeti
... View more
10-19-2021
03:24 PM
|
1
|
1
|
3301
|
|
POST
|
Hi, Adding a text symbol with different background derived from an attribute is currently not supported but is on our list of future candidates. If it were a handful of symbols you could override symbol for those graphic. But I am sure it is not the case. I will add your use case to our backlog issue and would appreciate if you could you please share your requirement and specific workflow with as much details as possible. An elaborate workflow adds more some weight to the feature and help us prioritize it. Thanks, Preeti
... View more
09-30-2021
01:53 PM
|
0
|
0
|
1090
|
|
POST
|
Looking at you code in your initial post, I see you mentioned you are using a DictionaryRenderer. I think you might be mixing up creating a dictionary of attributes to a DictionaryRenderer. DictionaryRenderer is a renderer based on arcade script in a stylx file. The stylx file contains symbols and values is published from pro. When this stylx is used to create a dictionary renderer, elements (graphics or features) are rendered sing symbols from this symbol style file based on the attribute value configured in dictionary renderer. https://developers.arcgis.com/net/styles-and-data-visualization/display-symbols-with-a-dictionary-renderer/
... View more
09-07-2021
08:57 AM
|
0
|
1
|
5870
|
|
POST
|
John, again as I mentioned mil2525d is a dictionary style that creates symbols and assembles a symbol at runtime based on different attributes in the data. Your data needs to be aligned with the specs otherwise it may render the correct symbols from dictionary renderer. If I understand correctly, you could achieve the workflow of tapping the map and adding symbol without stylx as well but if you may use a simple stylx file if you are really wanting to use advanced symbols from Pro. Here is a devsummit video link that touched some of the advance symbology stuff. You can skip to 47:02 hrs to get to the topic. https://www.youtube.com/watch?v=m6ZR1DuYlrQ&list=PLaPDDLTCmy4Ys8vfmC7DbX3FHSsyosvh7&index=29 Another resource that might help understand this would be Symbol editor sample https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/SymbolEditor
... View more
08-02-2021
09:53 AM
|
0
|
0
|
7823
|
|
POST
|
John, mil2525d.stylx is a special dictionary based stylx file that adheres to military specifications and work with data that have associated attributes. There are base symbols for specific attributes but essentially what symbol is used by a feature is assembled based on attributes in data and all this logic is driven by the arcade script backing the stylx. All this happens internally when you map the attributes based on the dictionary stylx being used. Here is some links from ArcGIS Pro front on : Mobile style files : https://pro.arcgis.com/en/pro-app/latest/help/projects/styles.htm ( see Web styles and Mobile styles sections particulary) Dictionary symbols : https://pro.arcgis.com/en/pro-app/2.7/help/mapping/layer-properties/dictionary-renderer.htm and here are few .Net Samples that showcase use of mil2525d and a custom dictionary in a Runtime application https://developers.arcgis.com/net/uwp/sample-code/graphics-overlay-dictionary-renderer/ https://developers.arcgis.com/net/uwp/sample-code/custom-dictionary-style/ In your workflow what you need is a simple mobile style file (a local .stylx or published on web referred as webstyles). Mobile style are stylx files capable of working in runtime apps. They are just a collection of vector symbols from ArcGIS Pro. Once created these symbols can be looked up by searching key/category/name etc via a runtime app. I recommend reading through this topic https://developers.arcgis.com/net/uwp/sample-code/read-symbols-from-mobile-style/. Create a mobile style using symbols you want to use in similar way and look for symbol you want to use to render your graphic. Hope this helps. - Preeti Preeti
... View more
07-29-2021
10:24 AM
|
0
|
2
|
7851
|
|
POST
|
You can set different symbols of sketch graphic by accessing symbols via MyMapView.SketchEditor.Style e.g MyMapView.SketchEditor.Style.LineSymbol = someOtherSymbol; More info https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_UI_SketchStyle.htm
... View more
06-23-2021
04:36 AM
|
0
|
3
|
2233
|
|
POST
|
Alternatively you could also use SymbolDisplay toolkit control to display the symbols to get the palette/picker experience. https://github.com/Esri/arcgis-toolkit-dotnet/blob/807302b3b613b93c54731c722be101eaf0fc62a9/src/Samples/Toolkit.Samples.Forms/Toolkit.Samples.Forms/Samples/SymbolEditorSample.xaml Another great example is the SymbolEditor demo available here: https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/SymbolEditor
... View more
04-27-2021
09:47 AM
|
0
|
0
|
4448
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2025 03:29 PM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|