🎨 not rendering polygon roads, not filling building

This commit is contained in:
Michael Straßburger 2016-09-21 06:19:36 +02:00
parent 4ae431718b
commit 51f3078fac
3 changed files with 9 additions and 3 deletions

View File

@ -45,6 +45,8 @@ No web browser around? No worries - discover the planet in your console!
### TODOs ### TODOs
* [ ] cli linking * [ ] cli linking
* [ ] mapping of view to tiles to show * [ ] mapping of view to tiles to show
* [ ] line drawing
* [ ] support for stroke width
* [ ] label drawing * [ ] label drawing
* [x] support for point labels * [x] support for point labels
* [x] dynamic decluttering of labels * [x] dynamic decluttering of labels

View File

@ -214,11 +214,11 @@
"stops": [ "stops": [
[ [
15.5, 15.5,
"#f2eae2" "#525652"
], ],
[ [
16, 16,
"#dfdbd7" "#5f5b57"
] ]
] ]
} }

View File

@ -79,7 +79,7 @@ class Termap
minZoom: 2 minZoom: 2
color: 8 color: 8
building: building:
minZoom: 2.5 minZoom: 3.8
color: 8 color: 8
poi_label: poi_label:
@ -265,6 +265,10 @@ class Termap
drawn drawn
_drawFeature: (layer, feature, scale) -> _drawFeature: (layer, feature, scale) ->
# TODO: this is ugly :) need to be fixed @style
return false if layer is 'road' and feature.type is "Polygon"
feature.type = "LineString" if layer is "building"
toDraw = [] toDraw = []
for idx, points of feature.points for idx, points of feature.points
visible = false visible = false