@nextgis/leaflet-map-adapter 1.9.4 → 1.10.0

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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/leaflet-map-adapter; version: 1.9.4; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 1.10.0; author: NextGIS */
2
2
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
3
 
4
4
  var events = {exports: {}};
@@ -14562,6 +14562,9 @@ function createControl(control, options = {}, map) {
14562
14562
  if (options.bar) {
14563
14563
  element.classList.add('leaflet-bar');
14564
14564
  }
14565
+ if (options.addClass) {
14566
+ element.classList.add(options.addClass);
14567
+ }
14565
14568
  if (!options.margin && !options.bar) {
14566
14569
  element.style.marginBottom = '0px';
14567
14570
  element.style.marginTop = '0px';
@@ -15090,7 +15093,7 @@ class GeoJsonAdapter extends BaseAdapter {
15090
15093
  async _openPopup(def, options = {}, type, latLng) {
15091
15094
  var _a, _b;
15092
15095
  const { feature, layer } = def;
15093
- const { minWidth, autoPan, maxWidth, closeButton: closeButton_ } = {
15096
+ const { minWidth, autoPan, maxWidth, closeButton: closeButton_, } = {
15094
15097
  minWidth: 300,
15095
15098
  ...options,
15096
15099
  };
@@ -15286,7 +15289,7 @@ class GeoJsonAdapter extends BaseAdapter {
15286
15289
  ok = this._filterFun(def);
15287
15290
  }
15288
15291
  if (ok) {
15289
- const { popup, popupOptions, selectable, interactive, selectOnHover, } = this.options;
15292
+ const { popup, popupOptions, selectable, interactive, selectOnHover } = this.options;
15290
15293
  // @ts-ignore
15291
15294
  layer.options.interactive = defined(interactive) ? interactive : true;
15292
15295
  layer_.addLayer(layer);