mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 23:53:08 +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
|
### 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
|
||||||
|
@ -214,11 +214,11 @@
|
|||||||
"stops": [
|
"stops": [
|
||||||
[
|
[
|
||||||
15.5,
|
15.5,
|
||||||
"#f2eae2"
|
"#525652"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
16,
|
16,
|
||||||
"#dfdbd7"
|
"#5f5b57"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user