🎨 not rendering polygon roads, not filling building

pull/7/head
Michael Straßburger 2016-09-21 06:19:36 +02:00
rodzic 4ae431718b
commit 51f3078fac
3 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -79,7 +79,7 @@ class Termap
minZoom: 2
color: 8
building:
minZoom: 2.5
minZoom: 3.8
color: 8
poi_label:
@ -265,6 +265,10 @@ class Termap
drawn
_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 = []
for idx, points of feature.points
visible = false