diff --git a/leaflet.gridlayer.googlemutant/index.d.ts b/leaflet.gridlayer.googlemutant/index.d.ts index 2f62268fcd..a5fa96ae80 100644 --- a/leaflet.gridlayer.googlemutant/index.d.ts +++ b/leaflet.gridlayer.googlemutant/index.d.ts @@ -5,7 +5,7 @@ /// -declare namespace L.GridLayer { +declare namespace L.gridLayer { export interface GoogleMutant extends L.GridLayer { setElementSize(e: HTMLElement, size: L.Point): void ; } @@ -51,7 +51,7 @@ declare namespace L.GridLayer { maxZoom?: number; maxNativeZoom?: number; tileSize?: number | Point; - subdomains?: string | Array; + subdomains?: string | string[]; errorTileUrl?: string; /** @@ -60,7 +60,7 @@ declare namespace L.GridLayer { attribution?: string; opacity?: number; - continuousWorld?: boolean, + continuousWorld?: boolean; noWrap?: boolean; /** @@ -71,7 +71,7 @@ declare namespace L.GridLayer { /** * Google's map styles. */ - styles?: GoogleMutantStyle[] + styles?: GoogleMutantStyle[]; } export function googleMutant(options?: GoogleMutantOptions): GoogleMutant; diff --git a/leaflet.gridlayer.googlemutant/leaflet.gridlayer.googlemutant-tests.ts b/leaflet.gridlayer.googlemutant/leaflet.gridlayer.googlemutant-tests.ts index 53e8dc3e1c..797947f9c7 100644 --- a/leaflet.gridlayer.googlemutant/leaflet.gridlayer.googlemutant-tests.ts +++ b/leaflet.gridlayer.googlemutant/leaflet.gridlayer.googlemutant-tests.ts @@ -1,10 +1,10 @@ let map = L.map('foo'); -let roads = L.GridLayer.googleMutant({ +let roads = L.gridLayer.googleMutant({ type: 'roadmap' }).addTo(map); -let styled = L.GridLayer.googleMutant({ +let styled = L.gridLayer.googleMutant({ type: 'satellite', styles: [ { elementType: 'labels', stylers: [ { visibility: 'off' } ] },