Skip to content

Commit

Permalink
Merge pull request #4 from watergis/feature/fill-extrusion-for-building
Browse files Browse the repository at this point in the history
upgrade building styles to use fill-extrusion-height flexiblely
  • Loading branch information
Jin Igarashi authored Feb 1, 2021
2 parents 268abc8 + 07478d0 commit b0f2761
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 76 deletions.
2 changes: 0 additions & 2 deletions hocon/layers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ layers: [
{ include ls-building }
{ include ls-place }
{ include ls-other }
{ include pg-building-shadow }
{ include pg-building }
{ include pg-building-train-station }
{ include pg-building-outline }
{ include pt-nature }
{ include pt-water }
{ include pt-boundary }
Expand Down
16 changes: 0 additions & 16 deletions hocon/pg-building-outline.conf

This file was deleted.

57 changes: 0 additions & 57 deletions hocon/pg-building-shadow.conf

This file was deleted.

24 changes: 23 additions & 1 deletion hocon/pg-building.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ filter: [
]
]
paint: {
fill-extrusion-opacity: 0.7
fill-extrusion-color: [
match
[
Expand All @@ -53,6 +54,27 @@ paint: {
215
]
]
fill-extrusion-height: 10
fill-extrusion-height: [
max
[
to-number
[
get
height
]
]
[
"*"
[
to-number
[
get
"building:levels"
]
]
3.66
]
5
]
}

0 comments on commit b0f2761

Please sign in to comment.