Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
});

const locations = {
germany: { lng: 10.962488768573053, lat: 50.958636214954396, zoom: 6 },
germany: { lng: 10.962488768573053, lat: 50.958636214954396, zoom: 5 },
stugge: { lng: 9.181, lat: 48.772, zoom: 13.5 },
berlin: { lng: 13.399, lat: 52.5159, zoom: 12.1977 },
frankfurt: { lng: 8.68834, lat: 50.1082, zoom: 11.7923 },
Expand Down
20 changes: 2 additions & 18 deletions components/src/maplibre/MapStyle/components/PlaceLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { SymbolLayerSpecification } from 'maplibre-gl';
// state capitals so they're not available in the versatiles data until z6

const majorCities = [
'Berlin',
'Stuttgart',
'München',
'Mainz',
Expand Down Expand Up @@ -164,24 +165,7 @@ export default function makePlaceLabels() {
layout: {
'text-size': {
stops: [
[7, 15],
[15, 21]
]
}
},
paint: {
'text-color': tokens.label_secondary
}
},
{
id: 'label-place-capital',
filter: ['all', ['==', 'kind', 'capital'], ['>', 'population', 1000000]],
minzoom: 5,
maxzoom: 12,
layout: {
'text-size': {
stops: [
[7, 15],
[7, 13],
[15, 21]
]
}
Expand Down