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.
上次发布: April 6, 2018ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000112212
已提交
March 7, 2018
上次修改时间
February 20, 2025
适用范围
ArcGIS Runtime SDK
找到的版本
10.2.7
操作系统
N/A
操作系统版本
N/A
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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);
}