@nextgis/leaflet-map-adapter 1.12.1 → 1.13.3

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/lib/index.d.ts CHANGED
@@ -35,7 +35,7 @@ declare class LeafletMapAdapter implements MapAdapter<Map_2, any, Control> {
35
35
  ATTRIBUTION: typeof AttributionControl;
36
36
  };
37
37
  static Map: typeof Map_2;
38
- options: MapOptions;
38
+ options: MapOptions<Map_2>;
39
39
  layerAdapters: {
40
40
  [name: string]: Type<LayerAdapter<Map_2, any, any>>;
41
41
  };
@@ -49,7 +49,7 @@ declare class LeafletMapAdapter implements MapAdapter<Map_2, any, Control> {
49
49
  private _unselectCb;
50
50
  private _universalEvents;
51
51
  private _positionEvents;
52
- create(options: MapOptions): void;
52
+ create(options: MapOptions<Map_2>): void;
53
53
  destroy(): void;
54
54
  getContainer(): HTMLElement | undefined;
55
55
  getControlContainer(): HTMLElement;
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/leaflet-map-adapter; version: 1.12.1; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 1.13.3; author: NextGIS */
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -16041,7 +16041,9 @@ var LeafletMapAdapter$1 = /** @class */ (function () {
16041
16041
  this.options = __assign({}, options);
16042
16042
  if (this.options.target) {
16043
16043
  var _a = this.options, zoom = _a.zoom, center = _a.center, maxZoom = _a.maxZoom, minZoom = _a.minZoom, mb = _a.maxBounds, mapAdapterOptions = _a.mapAdapterOptions;
16044
- this.map = new leafletSrc.exports.Map(this.options.target, __assign({ attributionControl: false, zoomControl: false, maxBounds: mb ? arrayToBoundsExpression(mb) : undefined, maxZoom: maxZoom, minZoom: minZoom, center: center && [center[1], center[0]], zoom: zoom }, mapAdapterOptions));
16044
+ this.map =
16045
+ this.options.map ||
16046
+ new leafletSrc.exports.Map(this.options.target, __assign({ attributionControl: false, zoomControl: false, maxBounds: mb ? arrayToBoundsExpression(mb) : undefined, maxZoom: maxZoom, minZoom: minZoom, center: center && [center[1], center[0]], zoom: zoom }, mapAdapterOptions));
16045
16047
  // create default pane
16046
16048
  var defPane = this.map.createPane('order-0');
16047
16049
  this.map._addUnselectCb = function (def) {