@nextgis/ngw-leaflet 1.16.2 → 1.16.4

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/ngw-leaflet; version: 1.16.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.16.4; author: NextGIS */
2
2
  import 'leaflet/dist/leaflet.css';
3
3
  import { Icon } from 'leaflet';
4
4
  import { NgwMap } from '@nextgis/ngw-map';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-leaflet; version: 1.16.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.16.4; author: NextGIS */
2
2
  var NgwLeaflet = (function () {
3
3
  'use strict';
4
4
 
@@ -21713,6 +21713,7 @@ var NgwLeaflet = (function () {
21713
21713
  'basemap_layer',
21714
21714
  'vector_layer',
21715
21715
  'raster_layer',
21716
+ 'postgis_layer',
21716
21717
  'webmap',
21717
21718
  // in tms branch
21718
21719
  'tmsclient_layer',
@@ -21730,7 +21731,6 @@ var NgwLeaflet = (function () {
21730
21731
  childrenStyles = _b.sent();
21731
21732
  firstStyle = childrenStyles && childrenStyles[0];
21732
21733
  if (firstStyle) {
21733
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
21734
21734
  return [2 /*return*/, createAsyncAdapter(__assign(__assign({}, layerOptions), { resource: firstStyle.resource.id }), webMap, connector)];
21735
21735
  }
21736
21736
  return [2 /*return*/];
@@ -21775,7 +21775,7 @@ var NgwLeaflet = (function () {
21775
21775
  adapter = createWebMapAdapter(adapterOptions);
21776
21776
  return [3 /*break*/, 11];
21777
21777
  case 5:
21778
- if (!(cls === 'vector_layer')) return [3 /*break*/, 6];
21778
+ if (!(cls === 'vector_layer' || cls === 'postgis_layer')) return [3 /*break*/, 6];
21779
21779
  type = item.vector_layer &&
21780
21780
  vectorLayerGeomToPaintTypeAlias[item.vector_layer.geometry_type];
21781
21781
  adapterOptions_ = adapterOptions.layerOptions.adapterOptions || {};
@@ -22879,7 +22879,7 @@ var NgwLeaflet = (function () {
22879
22879
  }).then(function (resp) {
22880
22880
  var identify = __assign(__assign({}, resp), { resources: ids, sourceType: 'raster', event: ev });
22881
22881
  var identifyEvent = _this._prepareToIdentify(identify);
22882
- _this._emitStatusEvent('ngw:select', identify);
22882
+ _this._emitStatusEvent('ngw:select', identifyEvent);
22883
22883
  return identifyEvent;
22884
22884
  });
22885
22885
  this._addPromise('select', selectPromise);