@nextgis/leaflet-map-adapter 1.11.7 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![size](https://img.shields.io/bundlephobia/minzip/@nextgis/leaflet-map-adapter) ![version](https://img.shields.io/npm/v/@nextgis/leaflet-map-adapter)
4
4
 
5
- WebMap adapter to use [Laeflet](https://leafletjs.com/) GIS framework.
5
+ WebMap adapter to use [Leaflet](https://leafletjs.com/) GIS framework.
6
6
 
7
7
  ## Install
8
8
 
@@ -31,6 +31,6 @@ webMap.create(options).then(() => {
31
31
 
32
32
  ## Commercial support
33
33
 
34
- Need to fix a bug or add a feature to @nextgis/leaflet-map-adapter? We provide custom development and support for this software. [Contact us](http://nextgis.com/contact/) to discuss options!
34
+ Need to fix a bug or add a feature to `@nextgis/leaflet-map-adapter`? We provide custom development and support for this software. [Contact us](http://nextgis.com/contact/) to discuss options!
35
35
 
36
36
  [![http://nextgis.com](https://nextgis.ru/img/nextgis.png)](http://nextgis.com)
package/lib/index.d.ts CHANGED
@@ -48,6 +48,7 @@ declare class LeafletMapAdapter implements MapAdapter<Map_2, any, Control> {
48
48
  private _resizeObserver?;
49
49
  private _unselectCb;
50
50
  private _universalEvents;
51
+ private _positionEvents;
51
52
  create(options: MapOptions): void;
52
53
  destroy(): void;
53
54
  getContainer(): HTMLElement | undefined;
@@ -61,9 +62,9 @@ declare class LeafletMapAdapter implements MapAdapter<Map_2, any, Control> {
61
62
  getZoom(): number | undefined;
62
63
  getBounds(): LngLatBoundsArray | undefined;
63
64
  fitBounds(bounds: LngLatBoundsArray, options?: FitOptions): void;
64
- getLayerAdapter(name: string): Type<LayerAdapter<L.Map, any, any>>;
65
- createControl(control: MapControl, options: CreateControlOptions): L.Control;
66
- createButtonControl(options: ButtonControlOptions): L.Control;
65
+ getLayerAdapter(name: string): Type<LayerAdapter<Map_2, any, any>>;
66
+ createControl(control: MapControl, options: CreateControlOptions): Control;
67
+ createButtonControl(options: ButtonControlOptions): Control;
67
68
  addControl(control: Control, position: string): Control | undefined;
68
69
  removeControl(control: Control): void;
69
70
  removeLayer(layer: Layer): void;