mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
[@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:
parent
b1513472fb
commit
272fd18a51
1
types/leaflet/index.d.ts
vendored
1
types/leaflet/index.d.ts
vendored
@ -1789,6 +1789,7 @@ export class Map extends Evented {
|
||||
stopLocate(): this;
|
||||
|
||||
// Properties
|
||||
attributionControl: L.Control.Attribution;
|
||||
boxZoom: Handler;
|
||||
doubleClickZoom: Handler;
|
||||
dragging: Handler;
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user