From 272fd18a5189201ae8744704deb283faef126b0f Mon Sep 17 00:00:00 2001 From: Richard Collette Date: Fri, 17 Jan 2020 15:26:43 -0500 Subject: [PATCH] [@types/leaflet] add attributionControl property to Map class (#41690) * [@types/leaflet] add attributionControl property to Map class * [@types/leaflet] unit tests for Map attributionControl property * fix spelling --- types/leaflet/index.d.ts | 1 + types/leaflet/leaflet-tests.ts | 3 +++ 2 files changed, 4 insertions(+) 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',