【解决办法】:
1)默认情况下,map容器中的图层都会显示在图例中。如果希望某些图层不参与图例,可以将layer的showInLegend属性(Indicates if this layer should be displayed in the Legend component or PrintTask output.)设置为false。//showInLegend=false
2)可以在图例中显示各个图层的名称。方法是设置layer的name属性。//name=the name of layer
1 个回复
谢军
赞同来自:
1)默认情况下,map容器中的图层都会显示在图例中。如果希望某些图层不参与图例,可以将layer的showInLegend属性(Indicates if this layer should be displayed in the Legend component or PrintTask output.)设置为false。//showInLegend=false
2)可以在图例中显示各个图层的名称。方法是设置layer的name属性。//name=the name of layer
要回复问题请先登录或注册