diff --git a/types/google-map-react/google-map-react-tests.tsx b/types/google-map-react/google-map-react-tests.tsx index 552e75d362..09bd8588be 100644 --- a/types/google-map-react/google-map-react-tests.tsx +++ b/types/google-map-react/google-map-react-tests.tsx @@ -13,6 +13,17 @@ const options: MapOptions = { featureType: "administrative", elementType: "all", stylers: [ {saturation: "-100"} ] + }, + { + featureType: "administrative.neighborhood", + stylers: [ {visibility: "off" } ] + }, + { + elementType: "labels.text.stroke", + stylers: [ {color: "#242f3e"} ] + }, + { + stylers: [ {color: "#fcfffd"} ] } ], }; diff --git a/types/google-map-react/index.d.ts b/types/google-map-react/index.d.ts index 6f4cf1fe7f..4c566df796 100644 --- a/types/google-map-react/index.d.ts +++ b/types/google-map-react/index.d.ts @@ -9,8 +9,8 @@ import * as React from 'react'; export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string }; export interface MapTypeStyle { - elementType: string; - featureType: string; + elementType?: string; + featureType?: string; stylers: any[]; }