diff --git a/README.md b/README.md index c7e380c..d81eaf9 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ Component to wrap around the code where the map should be available. > {children} +``` ### Properties @@ -117,10 +118,10 @@ interface GoogleMapProviderProps { googleMapsAPIKey: string; mapContainer?: HTMLElement | null; options: google.maps.MapOptions; - libraries: string[]; - mapIds: string[]; - language: string; - region: string; + libraries?: string[]; + language?: string; + region?: string; + mapIds?: string[]; onLoad?: (map: google.maps.Map) => void; } ``` diff --git a/src/map-provider.tsx b/src/map-provider.tsx index f3b949d..565e9ac 100644 --- a/src/map-provider.tsx +++ b/src/map-provider.tsx @@ -7,7 +7,7 @@ export interface GoogleMapProviderProps { googleMapsAPIKey: string; mapContainer?: HTMLElement | null; options: google.maps.MapOptions; - libraries: string[]; + libraries?: string[]; language?: string; region?: string; mapIds?: string[];