Skip to content

Commit 0b21021

Browse files
committed
style: enlarge map pins to match Google Maps + fix hub config
1 parent 1da5b1c commit 0b21021

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

app/composables/useMapIcons.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function useMapIcons() {
101101
'maxzoom': 24,
102102
'layout': {
103103
'icon-image': iconExpression,
104-
'icon-size': 0.06328125,
104+
'icon-size': 0.095,
105105
'icon-allow-overlap': false,
106106
'icon-anchor': 'bottom',
107107
'icon-offset': [0, 0],
@@ -111,7 +111,7 @@ export function useMapIcons() {
111111
'text-anchor': 'left',
112112
'text-offset': [1, -0.95],
113113
'text-justify': 'left',
114-
'text-size': 14,
114+
'text-size': 16,
115115
'text-optional': true, // Hide text if it collides, but keep the icon
116116
},
117117
'paint': {
@@ -136,7 +136,7 @@ export function useMapIcons() {
136136
'maxzoom': 24,
137137
'layout': {
138138
'icon-image': 'active',
139-
'icon-size': 0.09492188, // 1.5x larger
139+
'icon-size': 0.127,
140140
'icon-allow-overlap': true, // Always visible
141141
'icon-ignore-placement': false, // Block other icons from rendering here
142142
'icon-anchor': 'bottom',
@@ -147,7 +147,7 @@ export function useMapIcons() {
147147
'text-anchor': 'left',
148148
'text-offset': [1, -0.95],
149149
'text-justify': 'left',
150-
'text-size': 16,
150+
'text-size': 18,
151151
'text-allow-overlap': true, // Always show text
152152
'text-ignore-placement': false, // Block other text from rendering here
153153
},
@@ -288,8 +288,8 @@ export function useMapIcons() {
288288
const iconSizeExpression = [
289289
'case',
290290
['in', ['get', 'uuid'], ['literal', uuids]],
291-
0.09492188, // 1.5x larger
292-
0.06328125,
291+
0.127,
292+
0.095,
293293
]
294294
map.setLayoutProperty('location-icon', 'icon-size', iconSizeExpression as any)
295295

@@ -304,8 +304,8 @@ export function useMapIcons() {
304304
const textSizeExpression = [
305305
'case',
306306
['in', ['get', 'uuid'], ['literal', uuids]],
307+
18,
307308
16,
308-
14,
309309
]
310310
map.setLayoutProperty('location-icon', 'text-size', textSizeExpression as any)
311311

@@ -324,9 +324,9 @@ export function useMapIcons() {
324324
else {
325325
// Reset to normal styling
326326
map.setLayoutProperty('location-icon', 'icon-image', buildIconExpression() as any)
327-
map.setLayoutProperty('location-icon', 'icon-size', 0.06328125)
327+
map.setLayoutProperty('location-icon', 'icon-size', 0.095)
328328
map.setLayoutProperty('location-icon', 'symbol-sort-key', ['-', 0, ['coalesce', ['get', 'rating'], 0]] as any)
329-
map.setLayoutProperty('location-icon', 'text-size', 14)
329+
map.setLayoutProperty('location-icon', 'text-size', 16)
330330
map.setPaintProperty('location-icon', 'text-color', buildColorExpression() as any)
331331
map.setLayoutProperty('location-icon', 'text-allow-overlap', false)
332332
map.setLayoutProperty('location-icon', 'text-optional', true)

nuxt.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export default defineNuxtConfig({
3030
hub: {
3131
blob: true,
3232
kv: true,
33-
database: {
34-
dialect: 'postgresql',
35-
},
33+
db: 'postgresql',
3634
},
3735
eslint: {
3836
config: {

0 commit comments

Comments
 (0)