Skip to content

Commit

Permalink
Use fill extrusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Jan 20, 2024
1 parent 4945fdf commit d52044a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/examples/road_safety/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ def create_map() -> Map:
m.add_layer(
Layer(
id="road-safety",
type=LayerType.FILL,
type=LayerType.FILL_EXTRUSION,
source=source,
paint={"fill-color": ["get", "color"], "fill-opacity": 0.5},
paint={
"fill-extrusion-color": ["get", "color"],
"fill-extrusion-opacity": 0.7,
"fill-extrusion-height": ["*", 100, ["get", "count"]],
},
)
)
m.add_tooltip("road-safety", "count")
Expand Down

0 comments on commit d52044a

Please sign in to comment.