Closed JfrAziz closed 1 month ago
This looks like a bug (should be min_height), can you submit a PR?
minimum default building height when the height is null
Right, we should probably add a toggle for 3D/non-3D buildings in our default style... or default to one or the other?
just for update, looks like new version still no min_height. here when I inspect with maputnik
are you using the hosted api.protomaps.com or your own file?
my own file, from build, just check another location, some location has min_height
.
here is the latest file with date November 6 that has min_height for London eye
can you tell me what is the version for the file you are looking at? visible with pmtiles show
sorry, caching issues. I see outdated version after update.
thanks for help, here the styles I am using
{
"id": "buildings-3d",
"type": "fill-extrusion",
"source": "protomaps",
"source-layer": "buildings",
"minzoom": 14,
"paint": {
"fill-extrusion-base": [
"coalesce",
["get", "min_height"],
0
],
"fill-extrusion-color": "hsl(35,8%,85%)",
"fill-extrusion-height": [
"coalesce",
["get", "height"],
10
],
"fill-extrusion-opacity": 1
},
"filter": [
"any",
["!", ["has", "kind_detail"]],
["!=", ["get", "kind_detail"], "no"]
]
}
that kind_detail
= no
that has min_height 1.5 and height 136 make London Eye boxed.
I want to show 3D building from
buildings
layer, and for some buildings we needmin_height
. here the result:for comparison from openfreemap:
I am not familiar with layers generation, but is this line correct?
https://github.com/protomaps/basemaps/blob/f7bcb4869434030ba23271f43e9dbcf6bfc5d63f/tiles/src/main/java/com/protomaps/basemap/layers/Buildings.java#L20