🎨 applying style.paint['line-width']

This commit is contained in:
Michael Straßburger 2016-09-29 01:02:21 +02:00
parent 7bfe9bb57b
commit f493a48e34

View File

@ -13,6 +13,7 @@ utils = require './utils'
module.exports = class Renderer module.exports = class Renderer
config: config:
baseZoom: 4
fillPolygons: true fillPolygons: true
language: 'de' language: 'de'
@ -21,10 +22,11 @@ module.exports = class Renderer
#"poi_label", "water", #"poi_label", "water",
drawOrder: [ drawOrder: [
"water" "water"
"water_label"
"admin" "admin"
"building" "building"
"road" "road"
"water_label"
"place_label" "place_label"
"poi_label" "poi_label"
"housenum_label" "housenum_label"
@ -145,7 +147,8 @@ module.exports = class Renderer
switch feature.type switch feature.type
when "LineString" when "LineString"
@canvas.polyline points, colorCode for points in toDraw width = style.paint['line-width']?.base or 1
@canvas.polyline points, colorCode, width for points in toDraw
when "Polygon" when "Polygon"
@canvas.polygon toDraw[0], colorCode @canvas.polygon toDraw[0], colorCode