UI improvements
This commit is contained in:
parent
83dd2ca87e
commit
1569d116a9
14 changed files with 222 additions and 92 deletions
|
|
@ -35,7 +35,7 @@ export const ZOOM_TO_RESOLUTION_THRESHOLDS = [
|
|||
{ maxZoom: 13, resolution: 9 },
|
||||
] as const;
|
||||
|
||||
export const POSTCODE_ZOOM_THRESHOLD = 15;
|
||||
export const POSTCODE_ZOOM_THRESHOLD = 16;
|
||||
|
||||
export const FEATURE_GRADIENT: { t: number; color: [number, number, number] }[] = [
|
||||
{ t: 0, color: [46, 204, 113] },
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ export function getMapStyle(theme: 'light' | 'dark'): StyleSpecification {
|
|||
|
||||
return {
|
||||
version: 8,
|
||||
sprite: `${window.location.origin}/assets/sprites/${theme}`,
|
||||
glyphs: GLYPHS_URL,
|
||||
sources: {
|
||||
protomaps: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue