diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 1409c6b533..25718c3691 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -1789,6 +1789,7 @@ export class Map extends Evented { stopLocate(): this; // Properties + attributionControl: L.Control.Attribution; boxZoom: Handler; doubleClickZoom: Handler; dragging: Handler; diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index 387025dd67..1d6be18451 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -223,6 +223,9 @@ mapPixelBounds = map.getPixelBounds(); mapPixelBounds = map.getPixelWorldBounds(); mapPixelBounds = map.getPixelWorldBounds(12); +let attributionControl: L.Control.Attribution; +attributionControl = map.attributionControl; + let tileLayerOptions: L.TileLayerOptions = {}; tileLayerOptions = { id: 'mapbox.streets',