@types/google-map-react - optional elementType and featureType of a MapTypeStyle (#28766)

* optional elementType and featureType of a MapTypeStyle

* little fix
This commit is contained in:
Andres Rosero
2018-09-17 01:01:23 -07:00
committed by Ryan Cavanaugh
parent 4efc019933
commit 3523c68c52
2 changed files with 13 additions and 2 deletions
@@ -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"} ]
}
],
};
+2 -2
View File
@@ -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[];
}