Recevoir les mises à jour des bogues dans l’application
URL copiéePartager l’URL
Bogue
Definition expressions are not added to a web map JSON in a PrintTask print requests PrintParameters in ArcGIS Runtime SDK for .NET Window Presentation Foundation (WPF) 10.2.7 applications.
Dernière publication: April 6, 2018ArcGIS Runtime SDK
Numéro d’ID de bogue
BUG-000112212
Envoi
March 7, 2018
Dernière modification
February 20, 2025
S’applique à
ArcGIS Runtime SDK
Version trouvée
10.2.7
Système d’exploitation
N/A
Version du système d’exploitation
N/A
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 layer definition is only included when the map service supports the dynamic layers. To enable support for this workflow, enable the dynamic layer capability on the map service: https://enterprise.arcgis.com/en/server/latest/publish-services/windows/enabling-dynamic-layers-on-a-map-service-in-arcgis-for-desktop.htm
Example:
Alternatively, if it is not possible to enable the dynamic layers capability on the map service, then a workaround may be to use the equivalent feature service layer for each map service sublayer, specifying the Where Clause on the ServiceFeatureTable based on the definition from the map service sublayer.
Example:
var layers = new List();
foreach (var l in MyMapView.Map.Layers)
{
if (l is ArcGISDynamicMapServiceLayer && ((ArcGISDynamicMapServiceLayer)l).LayerDefinitions?.Count > 0 && !((ArcGISDynamicMapServiceLayer)l).ServiceInfo.SupportsDynamicLayers)
{
var dynamicLayer = (ArcGISDynamicMapServiceLayer)l;
foreach (var d in dynamicLayer.LayerDefinitions)
{
layers.Add(new FeatureLayer(new ServiceFeatureTable(new Uri($"{dynamicLayer.ServiceUri}/{d.LayerID}")) { Where = d.Definition }));
}
}
else
layers.Add(l);
}
Étapes pour reproduire
ID de bogue: BUG-000112212
Logiciel:
ArcGIS Runtime SDK
Recevoir une notification lorsque le statut d’un bogue change