Urgent add carto API key
This commit is contained in:
@@ -58,6 +58,7 @@ class HandleInertiaRequests extends Middleware
|
|||||||
->whereNull('expires_at')
|
->whereNull('expires_at')
|
||||||
->orWhere('expires_at', '>', now())
|
->orWhere('expires_at', '>', now())
|
||||||
->count(),
|
->count(),
|
||||||
|
'carto_api_key' => config('services.carto.key'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ return [
|
|||||||
'key' => env('POSTMARK_API_KEY'),
|
'key' => env('POSTMARK_API_KEY'),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'carto' => [
|
||||||
|
'key' => env('CARTO_API_KEY'),
|
||||||
|
],
|
||||||
|
|
||||||
'resend' => [
|
'resend' => [
|
||||||
'key' => env('RESEND_API_KEY'),
|
'key' => env('RESEND_API_KEY'),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ import {useUpdateSetting} from "@/Composables/useUpdateSetting";
|
|||||||
import {usePage} from "@inertiajs/vue3";
|
import {usePage} from "@inertiajs/vue3";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type LngLat = [number, number]
|
type LngLat = [number, number]
|
||||||
|
|
||||||
interface RouteFlightBucket {
|
interface RouteFlightBucket {
|
||||||
@@ -290,6 +291,7 @@ export default defineComponent({
|
|||||||
const { updateSetting } = useUpdateSetting()
|
const { updateSetting } = useUpdateSetting()
|
||||||
const page = usePage<SharedProps>().props
|
const page = usePage<SharedProps>().props
|
||||||
|
|
||||||
|
const carto_key = page.carto_api_key
|
||||||
|
|
||||||
let map: maplibregl.Map | null = null
|
let map: maplibregl.Map | null = null
|
||||||
let popup: maplibregl.Popup | null = null
|
let popup: maplibregl.Popup | null = null
|
||||||
@@ -736,10 +738,10 @@ export default defineComponent({
|
|||||||
maxzoom: 19,
|
maxzoom: 19,
|
||||||
attribution: cartoAttribution.value,
|
attribution: cartoAttribution.value,
|
||||||
tiles: [
|
tiles: [
|
||||||
'https://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png',
|
`https://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png?key=${carto_key}`,
|
||||||
'https://b.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png',
|
`https://b.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png?key=${carto_key}`,
|
||||||
'https://c.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png',
|
`https://c.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png?key=${carto_key}`,
|
||||||
'https://d.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png',
|
`https://d.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png?key=${carto_key}`,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Vendored
+1
@@ -110,6 +110,7 @@ export type SharedProps = import('@inertiajs/core').PageProps & {
|
|||||||
logo_api_url: string
|
logo_api_url: string
|
||||||
achievement_notifications: Notification[]
|
achievement_notifications: Notification[]
|
||||||
unread_notification_count: number
|
unread_notification_count: number
|
||||||
|
carto_api_key: string
|
||||||
}
|
}
|
||||||
export interface AchievementDifficulty {
|
export interface AchievementDifficulty {
|
||||||
id: number
|
id: number
|
||||||
|
|||||||
Reference in New Issue
Block a user