@nextgis/ngw-leaflet 1.18.1 → 1.18.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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-leaflet; version: 1.18.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.18.3; 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.18.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.18.3; author: NextGIS */
2
2
  var NgwLeaflet = (function () {
3
3
  'use strict';
4
4
 
@@ -20051,8 +20051,10 @@ var NgwLeaflet = (function () {
20051
20051
  return feature;
20052
20052
  }
20053
20053
  function updateItemRequestParam(params, options) {
20054
- var extensions = options.extensions, geom = options.geom, fields = options.fields, srs = options.srs;
20055
- params.extensions = extensions ? extensions.join(',') : '';
20054
+ var extensions = options.extensions, geom = options.geom, fields = options.fields, srs = options.srs, ilike = options.ilike, like = options.like;
20055
+ if (extensions) {
20056
+ params.extensions = extensions.join(',');
20057
+ }
20056
20058
  if (fields !== undefined) {
20057
20059
  params.fields = Array.isArray(fields) ? fields.join(',') : '';
20058
20060
  }
@@ -20063,6 +20065,12 @@ var NgwLeaflet = (function () {
20063
20065
  delete params.geom_format;
20064
20066
  }
20065
20067
  }
20068
+ if (defined(ilike)) {
20069
+ params.ilike = ilike;
20070
+ }
20071
+ else if (defined(like)) {
20072
+ params.like = like;
20073
+ }
20066
20074
  if (defined(srs)) {
20067
20075
  params.srs = srs;
20068
20076
  }
@@ -22997,22 +23005,24 @@ var NgwLeaflet = (function () {
22997
23005
  return oDOM.documentElement;
22998
23006
  }
22999
23007
  function getIcon(opt) {
23000
- var _a, _b, _c, _d;
23008
+ var _a, _b, _c, _d, _e;
23001
23009
  if (opt === void 0) { opt = {}; }
23002
23010
  // default values
23003
23011
  var shape = (_a = opt.shape) !== null && _a !== void 0 ? _a : 'circle';
23004
23012
  var color = (_b = opt.color) !== null && _b !== void 0 ? _b : 'blue';
23005
23013
  var strokeColor = (_c = opt.strokeColor) !== null && _c !== void 0 ? _c : 'white';
23006
23014
  var size = (_d = opt.size) !== null && _d !== void 0 ? _d : 12;
23015
+ var rotate = (_e = opt.rotate) !== null && _e !== void 0 ? _e : 0;
23007
23016
  var anchor = size / 2;
23008
23017
  var defSize = 12;
23009
- var stroke = typeof opt.stroke === 'number' ? opt.stroke : STROKE;
23018
+ var stroke = opt.stroke !== undefined ? Number(opt.stroke) : STROKE;
23010
23019
  var scale = size / defSize;
23011
23020
  var pathAlias = opt.p || svgPath[shape] || 'circle';
23012
23021
  var path = typeof pathAlias === 'string' ? pathAlias : pathAlias(opt);
23013
23022
  var svg = insertSvg(opt.svg || generateSvg(size, size, stroke * scale, path));
23014
23023
  var fistChild = svg.firstChild;
23015
- var transform = "scale(".concat(scale, ")");
23024
+ var scaledAnchor = defSize / 2;
23025
+ var transform = "scale(".concat(scale, ") rotate(").concat(rotate, ", ").concat(scaledAnchor, ", ").concat(scaledAnchor, ")");
23016
23026
  fistChild.setAttribute('fill', color);
23017
23027
  if (stroke) {
23018
23028
  fistChild.setAttribute('stroke', strokeColor);