mirror of
https://github.com/rastapasta/mapscii.git
synced 2025-05-30 23:06:15 +02:00
🎨 applying style.paint['line-width']
This commit is contained in:
parent
7bfe9bb57b
commit
f493a48e34
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user