From de6c8f81723ad170d26dbaeff8dc04457e72baae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B8ran=20Dalum?= Date: Mon, 13 Jul 2026 08:56:34 +0200 Subject: [PATCH] fix: remove styles referencing non-existing layers These references caused extensive warning messages in web console. --- src/mapbox-styles/get-mapbox-dark-style.ts | 384 -------------------- src/mapbox-styles/get-mapbox-light-style.ts | 384 -------------------- 2 files changed, 768 deletions(-) diff --git a/src/mapbox-styles/get-mapbox-dark-style.ts b/src/mapbox-styles/get-mapbox-dark-style.ts index 16d5cb6..2b04621 100644 --- a/src/mapbox-styles/get-mapbox-dark-style.ts +++ b/src/mapbox-styles/get-mapbox-dark-style.ts @@ -4144,390 +4144,6 @@ export const getMapboxDarkStyle = ( }, 'source-layer': 'natural_label', }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-subway_underground_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['metro'], true, false], - ['match', ['get', 'descend'], ['yes'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-metro-steps', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-subway_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['metro'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-metro-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-train_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['rail'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-rail-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-train_underground_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['rail'], true, false], - ['match', ['get', 'descend'], ['yes'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-rail-steps', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2020-c5044e-bus_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['bus'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-bus-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-airplane_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['air'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-airport-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-ferry_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['water'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-water-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-tram_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['', 'tram'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-tram-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, { id: 'building-number-label', type: 'symbol', diff --git a/src/mapbox-styles/get-mapbox-light-style.ts b/src/mapbox-styles/get-mapbox-light-style.ts index 69bf9ae..feba87a 100644 --- a/src/mapbox-styles/get-mapbox-light-style.ts +++ b/src/mapbox-styles/get-mapbox-light-style.ts @@ -4256,390 +4256,6 @@ export const getMapboxLightStyle = ( }, 'source-layer': 'road', }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-subway_underground_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['metro'], true, false], - ['match', ['get', 'descend'], ['yes'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-metro-steps', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-subway_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['metro'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-metro-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-train_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['rail'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-rail-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-train_underground_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['rail'], true, false], - ['match', ['get', 'descend'], ['yes'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-rail-steps', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2020-c5044e-bus_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['bus'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-bus-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-airplane_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['air'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-airport-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-ferry_entrance-13', // icon NOT EXISTING ATM, fix! - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['water'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-water-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, - { - minzoom: 15, - layout: { - 'text-line-height': 0.9, - 'text-size': [ - 'interpolate', - ['exponential', 1.5], - ['zoom'], - 12, - 11, - 22, - 24, - ], - 'text-allow-overlap': true, - 'icon-image': '2019-tram_entrance-13', - 'text-font': ['DIN Offc Pro Regular', 'Arial Unicode MS Regular'], - 'text-padding': 0, - 'text-anchor': 'top', - 'text-field': ['to-string', ['get', 'stopaccess']], - 'icon-padding': 0, - 'text-max-width': 5, - }, - filter: [ - 'all', - ['match', ['get', 'stopaccess:suspended'], ['yes'], false, true], - ['match', ['get', 'type'], ['', 'tram'], true, false], - ['match', ['get', 'descend'], ['no'], true, false], - ], - type: 'symbol', - source: 'composite', - id: 'access-tram-doors', - paint: { - 'text-color': '#181c56', - 'text-opacity': [ - 'interpolate', - ['linear'], - ['zoom'], - 16.5, - 0, - 16.75, - 1, - ], - 'text-halo-color': 'hsl(0, 0%, 100%)', - 'text-halo-width': 1.25, - 'text-translate': [0, 13], - }, - 'source-layer': 'stoppestedsinnganger', - }, { id: 'building-number-label', type: 'symbol',