We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5903e commit 43c54b3Copy full SHA for 43c54b3
‎types/leaflet.gridlayer.googlemutant/index.d.ts‎
@@ -87,6 +87,8 @@ declare module "leaflet" {
87
* Google's map styles.
88
*/
89
styles?: GoogleMutantStyle[] | undefined;
90
+
91
+ mapId?: string | undefined;
92
}
93
94
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
‎types/leaflet.gridlayer.googlemutant/leaflet.gridlayer.googlemutant-tests.ts‎
@@ -22,3 +22,10 @@ const styled = L.gridLayer
22
styled.addGoogleLayer("TrafficLayer").then(nativeTrafficLayer => {
23
styled.removeGoogleLayer("TrafficLayer");
24
});
25
26
+const withMapId = L.gridLayer
27
+ .googleMutant({
28
+ type: "roadmap",
29
+ mapId: "mapId",
30
+ })
31
+ .addTo(map);
0 commit comments