Skip to content

Comments

Update base_layers.ts: add 3D#520

Open
pietervdvn wants to merge 2 commits intoprotomaps:mainfrom
pietervdvn:patch-2
Open

Update base_layers.ts: add 3D#520
pietervdvn wants to merge 2 commits intoprotomaps:mainfrom
pietervdvn:patch-2

Conversation

@pietervdvn
Copy link
Contributor

Hey,

You've got an awesome project, which apparently also included 3D-data. I wasn't aware of that as the basestyles don't leverage it.

I've added a small snippet to the basestyle to use that 3D-support to show it of. Copied it out of my own fork of the style (MapComplete-Sunny), so it should work, but I have to admit that I didn't test it in the environment here.

Anyway, here is how it looks in MapComplete:

image

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 2, 2025

@bdon
Copy link
Member

bdon commented Feb 20, 2026

My current plan is to make 3D buildings a Flavor parameter, boolean true/false. The majority of basemap use cases are 2D only. the styles hosted at https://protomaps.com/api are pre-generated style JSONs where you have no control over Flavor parameters, but loading from the npm package @protomaps/basemaps lets you pass in type-safe parameter overrides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants