[@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
This commit is contained in:
Richard Collette 2020-01-17 15:26:43 -05:00 committed by Eli Barzilay
parent b1513472fb
commit 272fd18a51
2 changed files with 4 additions and 0 deletions

View File

@ -1789,6 +1789,7 @@ export class Map extends Evented {
stopLocate(): this;
// Properties
attributionControl: L.Control.Attribution;
boxZoom: Handler;
doubleClickZoom: Handler;
dragging: Handler;

View File

@ -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',