         for points in toDraw
           for point in points
             x = point[0] - text.length
-            if @labelBuffer.writeIfPossible text, x, point[1]
+            if @labelBuffer.writeIfPossible text, x, point[1], (@config.layers[layer]?.margin or @config.labelMargin)
               @canvas.text text, x, point[1], colorCode, false
 
   notify: (text) ->


    @canvas.translate @view[0], @view[1]
    @_drawLayers()
    @canvas.print()

    @isDrawing = false

      cinema: "C" #"🎦"

    layers:
      housenum_label:
        minZoom: 1.5
        margin: 3
      building: minZoom: 3.8
      poi_label:
        minZoom: 3
        margin: 5

  isDrawing: false
  lastDrawAt: 0
