@nextgis/ngw-map 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-map; version: 1.18.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 1.18.3; author: NextGIS */
2
2
  import { EventEmitter } from 'events';
3
3
  import CancelablePromise from '@nextgis/cancelable-promise';
4
4
  import { deepmerge, deprecatedWarn, defined, isObject, getIdentifyRadius } from '@nextgis/utils';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 1.18.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 1.18.3; author: NextGIS */
2
2
  var NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -5989,8 +5989,10 @@ var NgwMap = (function (exports) {
5989
5989
  return feature;
5990
5990
  }
5991
5991
  function updateItemRequestParam(params, options) {
5992
- var extensions = options.extensions, geom = options.geom, fields = options.fields, srs = options.srs;
5993
- params.extensions = extensions ? extensions.join(',') : '';
5992
+ var extensions = options.extensions, geom = options.geom, fields = options.fields, srs = options.srs, ilike = options.ilike, like = options.like;
5993
+ if (extensions) {
5994
+ params.extensions = extensions.join(',');
5995
+ }
5994
5996
  if (fields !== undefined) {
5995
5997
  params.fields = Array.isArray(fields) ? fields.join(',') : '';
5996
5998
  }
@@ -6001,6 +6003,12 @@ var NgwMap = (function (exports) {
6001
6003
  delete params.geom_format;
6002
6004
  }
6003
6005
  }
6006
+ if (defined(ilike)) {
6007
+ params.ilike = ilike;
6008
+ }
6009
+ else if (defined(like)) {
6010
+ params.like = like;
6011
+ }
6004
6012
  if (defined(srs)) {
6005
6013
  params.srs = srs;
6006
6014
  }
@@ -8935,22 +8943,24 @@ var NgwMap = (function (exports) {
8935
8943
  return oDOM.documentElement;
8936
8944
  }
8937
8945
  function getIcon(opt) {
8938
- var _a, _b, _c, _d;
8946
+ var _a, _b, _c, _d, _e;
8939
8947
  if (opt === void 0) { opt = {}; }
8940
8948
  // default values
8941
8949
  var shape = (_a = opt.shape) !== null && _a !== void 0 ? _a : 'circle';
8942
8950
  var color = (_b = opt.color) !== null && _b !== void 0 ? _b : 'blue';
8943
8951
  var strokeColor = (_c = opt.strokeColor) !== null && _c !== void 0 ? _c : 'white';
8944
8952
  var size = (_d = opt.size) !== null && _d !== void 0 ? _d : 12;
8953
+ var rotate = (_e = opt.rotate) !== null && _e !== void 0 ? _e : 0;
8945
8954
  var anchor = size / 2;
8946
8955
  var defSize = 12;
8947
- var stroke = typeof opt.stroke === 'number' ? opt.stroke : STROKE;
8956
+ var stroke = opt.stroke !== undefined ? Number(opt.stroke) : STROKE;
8948
8957
  var scale = size / defSize;
8949
8958
  var pathAlias = opt.p || svgPath[shape] || 'circle';
8950
8959
  var path = typeof pathAlias === 'string' ? pathAlias : pathAlias(opt);
8951
8960
  var svg = insertSvg(opt.svg || generateSvg(size, size, stroke * scale, path));
8952
8961
  var fistChild = svg.firstChild;
8953
- var transform = "scale(".concat(scale, ")");
8962
+ var scaledAnchor = defSize / 2;
8963
+ var transform = "scale(".concat(scale, ") rotate(").concat(rotate, ", ").concat(scaledAnchor, ", ").concat(scaledAnchor, ")");
8954
8964
  fistChild.setAttribute('fill', color);
8955
8965
  if (stroke) {
8956
8966
  fistChild.setAttribute('stroke', strokeColor);