-
-
Notifications
You must be signed in to change notification settings - Fork 184
-
I haven't been very active here for the last two years, so I thought it would be of interested for others as well.
I would like to know what's the current status of creating 3D building data in Planetiler. There is the fork by @StrandedKitty (strandedkitty/planetiler) used for Streets.gl, which I still consider to be very pretty (except the windows ;)).
See also:
Since it's inception there have been many improvements on the configurability of Planetiler - maybe it's already possible to configure a vanilla Planetiler to create the required tile format / enhancements to use the with the frontend code?
On the other hand there is the 3D tile format:
Maybe that would be a better target to think about?
Do you have any suggestions / ideas or this this considered to be only fancy eye candy and thus completely out of scope (for Planetiler)?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 7 replies
-
Hello! Almost everything that streets.gl needs for 2.5d buildings is supported by planetiler out of the box. It implements 2 key things that are planned in planetiler but not implemented yet that they wanted for higher-resolution data (see diff):
- snap coordinates to 65536 grid instead of 4096 used by default for planetiler. Planetiler should eventually support configurable tile extents but it's not been implemented yet: [FEATURE] Configurable tile extent per zoom in the output #1286
- generate tiles to zoom 16. Planetiler is currently capped at 15 but it shouldn't be hard to extend that to 16+ (see discussion in Why MAX_MAXZOOM = 15? #506 )
Neither of these are strictly necessary for showing 2.5d buildings in something like maplibre but they are needed by streets.gl frontend.
Do you have some examples of things you want to do but aren't able to with maplibre (mvt+terrain+building extrusion+3d model support) ? We are in the process of adding maplibre vector tile support to planetiler which will eventually support for 3d features. I haven't looked much into the true 3d tile formats though, if there's a data source and use-case it might be possible to adapt planetiler but currently it's optimized for the 2d web mercator tiling use-case.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
...where map is your maplibregl instance in JavaScript.
Beta Was this translation helpful? Give feedback.
All reactions
-
@wipfli: I can't find those options on Map or MapOptions of maplibre-gl-js
Beta Was this translation helpful? Give feedback.
All reactions
-
That API is not public and actually does only work with GL JS version 4.7.2 or lower. The globe view in v5 changed things apparently. Anyway, here is a js bin with a field of view slider:
https://jsbin.com/fihukucuce/edit?html,output
Beta Was this translation helpful? Give feedback.
All reactions
-
Ah actually there is a public api for this now in GL JS:
map.setVerticalFieldOfView(5);
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Thanks all, I get a proof of concept working:
https://christianmahnke.de/en/post/patching-osm-data/
Screenshot at the bottom
Beta Was this translation helpful? Give feedback.