 
       continue unless @features?[layer]
 
-      scale = ((4096/256)<<4)/Math.pow(2, @zoom+4)
+      scale = (@config.tileSize/@config.projectSize)/Math.pow(2, @zoom)
 
       if @config.layers[layer]?.minZoom and @zoom > @config.layers[layer].minZoom
         continue

    language: 'de'

    labelMargin: 5

    #"poi_label", "water",
    drawOrder: [

  draw: (@view, @zoom, @degree) ->
    return if @isDrawing
    @isDrawing = true

    @notify "rendering..."

