Utils.labelLayer(layer, text)

Quickly add a label to a layer. By default, the text will be set in Menlo, and positioned in the center of the layer.
译:快速添加一个标签到一层。默认情况下,文本将被设置在Menlo(是一個无衬线等宽字体),并位于该层的中心。

Arguments(参数)
  1. layer — A layer object. 译:层对象。
  2. text — A string. 译:一个字符串。
layerA = new Layer

# Add a label to layerA  
Utils.labelLayer(layerA, "Hello")

results matching ""

    No results matching ""