Google Maps Bug
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
export interface AppConfig {
|
||||
/** Google Maps JavaScript API key for map visualization */
|
||||
googleMapsApiKey: string;
|
||||
/** Google Maps Map ID for vector basemap and advanced markers */
|
||||
googleMapsMapId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,6 +62,21 @@ export function getGoogleMapsApiKey(): string {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Google Maps Map ID (optional)
|
||||
*
|
||||
* @returns Google Maps Map ID or empty string
|
||||
*/
|
||||
export function getGoogleMapsMapId(): string {
|
||||
try {
|
||||
const config = getConfig();
|
||||
return config.googleMapsMapId || '';
|
||||
} catch {
|
||||
console.warn('Google Maps Map ID not available. Advanced map features may be limited.');
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if configuration is available
|
||||
* Useful for conditional feature enablement
|
||||
|
||||
Reference in New Issue
Block a user