parameters: (sl)
return_statement: return {"type": "symbol", "paint": paint, "layout": layout}
docstring: rotation = -1 * float(qgisLayer.customProperty("labeling/angleOffset"))
      layout["text-rotate"] = rotation
  
      ["text-opacity"] = (255 - int(qgisLayer.layerTransparency())) / 255.0
  
      if str(qgisLayer.customProperty("labeling/scaleVisibility")).lower() == "true":
          layer["minzoom"]  = _toZoomLevel(float(qgisLayer.customProperty("labeling/scaleMin")))
          layer["maxzoom"]  = _toZoomLevel(float(qgisLayer.customProperty("labeling/scaleMax")))
docstring_summary: rotation = -1 * float(qgisLayer.customProperty("labeling/angleOffset"))
      layout["text-rotate"] = rotation
docstring_tokens: rotation = - 1 * float ( qgisLayer . customProperty ( labeling / angleOffset )) layout [ text - rotate ] = rotation
function: def _textSymbolizer(sl):
      layout = {}
      paint = {}
      color = _symbolProperty(sl, "color")
      fontFamily = _symbolProperty(sl, "font")
      label = _symbolProperty(sl, "label")
      size = _symbolProperty(sl, "size")
      if "offset" in sl:
          offset = sl["offset"]
          offsetx = convertExpression(offset[0])
          offsety = convertExpression(offset[1])
          layout["text-offset"] = [offsetx, offsety]
      elif "perpendicularOffset" in sl:
          offset = sl["perpendicularOffset"]
          layout["text-offset"] = offset
  
      if "haloColor" in sl and "haloSize" in sl:
          paint["text-halo-width"] = _symbolProperty(sl, "haloSize")
          paint["text-halo-color"] = _symbolProperty(sl, "haloColor")
  
      layout["text-field"] = label
      layout["text-size"] = size
      layout["text-font"] = [fontFamily]
  
      paint["text-color"] = color
  
      """
      rotation = -1 * float(qgisLayer.customProperty("labeling/angleOffset"))
      layout["text-rotate"] = rotation
  
      ["text-opacity"] = (255 - int(qgisLayer.layerTransparency())) / 255.0
  
      if str(qgisLayer.customProperty("labeling/scaleVisibility")).lower() == "true":
          layer["minzoom"]  = _toZoomLevel(float(qgisLayer.customProperty("labeling/scaleMin")))
          layer["maxzoom"]  = _toZoomLevel(float(qgisLayer.customProperty("labeling/scaleMax")))
      """
  
      return {"type": "symbol", "paint": paint, "layout": layout}
function_tokens: def _textSymbolizer ( sl ) : layout = { } paint = { } color = _symbolProperty ( sl , "color" ) fontFamily = _symbolProperty ( sl , "font" ) label = _symbolProperty ( sl , "label" ) size = _symbolProperty ( sl , "size" ) if "offset" in sl : offset = sl [ "offset" ] offsetx = convertExpression ( offset [ 0 ] ) offsety = convertExpression ( offset [ 1 ] ) layout [ "text-offset" ] = [ offsetx , offsety ] elif "perpendicularOffset" in sl : offset = sl [ "perpendicularOffset" ] layout [ "text-offset" ] = offset if "haloColor" in sl and "haloSize" in sl : paint [ "text-halo-width" ] = _symbolProperty ( sl , "haloSize" ) paint [ "text-halo-color" ] = _symbolProperty ( sl , "haloColor" ) layout [ "text-field" ] = label layout [ "text-size" ] = size layout [ "text-font" ] = [ fontFamily ] paint [ "text-color" ] = color return { "type" : "symbol" , "paint" : paint , "layout" : layout }