Numéro d’ID de bogue |
BUG-000108786 |
Envoi | October 13, 2017 |
Dernière modification | June 5, 2024 |
S’applique à | ArcGIS Runtime SDK |
Version trouvée | 100.1.0 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 10.0 64 Bit |
Statut | Known Limit
Après examen par l’équipe de développement, il a été déterminé que ce problème est lié à une limitation connue du logiciel sur laquelle Esri n’a aucun contrôle. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
The JSON symbol definition used in this case is no longer supported in ArcGIS Runtime as of version 100.2. To ensure supported JSON is used, the recommended approach is to use ArcGIS Pro to create mobile style files (.stylx) and reference those via the ArcGIS Runtime API using the `SymbolStyle` class static `OpenAsync()` method. That returns a SymbolStyle instance that can return symbols using the GetSymbolAsync method in conjunction with the symbol name. The symbol can be used on a per-Graphic basis, or within a Renderer. The existing JSON symbol definition(s) can be used as a guide to create new symbols within the new mobile style.
For example:
```
SymbolStyle symbolStyle = await SymbolStyle.OpenAsync(@"C:\MyMobileStyle.stylx");
Symbol symbol = await symbolStyle.GetSymbolAsync(new List() { "My Polygon Symbol" });
```
For more information see:
http://pro.arcgis.com/en/pro-app/help/projects/styles.htm
http://pro.arcgis.com/en/pro-app/help/projects/manage-styles.htm
http://pro.arcgis.com/en/pro-app/help/mapping/layer-properties/polygon-symbols.htm
Étapes pour reproduire
ID de bogue: BUG-000108786
Logiciel: