mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-07 16:54:22 +01:00
🎨 not rendering polygon roads, not filling building
This commit is contained in:
parent
4ae431718b
commit
51f3078fac
@ -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
|
||||
|
@ -214,11 +214,11 @@
|
||||
"stops": [
|
||||
[
|
||||
15.5,
|
||||
"#f2eae2"
|
||||
"#525652"
|
||||
],
|
||||
[
|
||||
16,
|
||||
"#dfdbd7"
|
||||
"#5f5b57"
|
||||
]
|
||||
]
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user