@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.
- package/lib/ngw-map.cjs.js +1 -1
- package/lib/ngw-map.esm-browser.js +16 -6
- package/lib/ngw-map.esm-browser.js.map +1 -1
- package/lib/ngw-map.esm-browser.prod.js +1 -1
- package/lib/ngw-map.esm-browser.prod.js.map +1 -1
- package/lib/ngw-map.esm-bundler.js +1 -1
- package/lib/ngw-map.global.js +16 -6
- package/lib/ngw-map.global.js.map +1 -1
- package/lib/ngw-map.global.prod.js +1 -1
- package/lib/ngw-map.global.prod.js.map +1 -1
- package/package.json +7 -7
package/lib/ngw-map.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 1.18.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 1.18.3; author: NextGIS */
|
|
2
2
|
var events = {exports: {}};
|
|
3
3
|
|
|
4
4
|
var R = typeof Reflect === 'object' ? Reflect : null;
|
|
@@ -5431,8 +5431,10 @@ function createGeoJsonFeature(item) {
|
|
|
5431
5431
|
return feature;
|
|
5432
5432
|
}
|
|
5433
5433
|
function updateItemRequestParam(params, options) {
|
|
5434
|
-
const { extensions, geom, fields, srs } = options;
|
|
5435
|
-
|
|
5434
|
+
const { extensions, geom, fields, srs, ilike, like } = options;
|
|
5435
|
+
if (extensions) {
|
|
5436
|
+
params.extensions = extensions.join(',');
|
|
5437
|
+
}
|
|
5436
5438
|
if (fields !== undefined) {
|
|
5437
5439
|
params.fields = Array.isArray(fields) ? fields.join(',') : '';
|
|
5438
5440
|
}
|
|
@@ -5443,6 +5445,12 @@ function updateItemRequestParam(params, options) {
|
|
|
5443
5445
|
delete params.geom_format;
|
|
5444
5446
|
}
|
|
5445
5447
|
}
|
|
5448
|
+
if (defined(ilike)) {
|
|
5449
|
+
params.ilike = ilike;
|
|
5450
|
+
}
|
|
5451
|
+
else if (defined(like)) {
|
|
5452
|
+
params.like = like;
|
|
5453
|
+
}
|
|
5446
5454
|
if (defined(srs)) {
|
|
5447
5455
|
params.srs = srs;
|
|
5448
5456
|
}
|
|
@@ -8061,21 +8069,23 @@ function insertSvg(svg) {
|
|
|
8061
8069
|
return oDOM.documentElement;
|
|
8062
8070
|
}
|
|
8063
8071
|
function getIcon(opt = {}) {
|
|
8064
|
-
var _a, _b, _c, _d;
|
|
8072
|
+
var _a, _b, _c, _d, _e;
|
|
8065
8073
|
// default values
|
|
8066
8074
|
const shape = (_a = opt.shape) !== null && _a !== void 0 ? _a : 'circle';
|
|
8067
8075
|
const color = (_b = opt.color) !== null && _b !== void 0 ? _b : 'blue';
|
|
8068
8076
|
const strokeColor = (_c = opt.strokeColor) !== null && _c !== void 0 ? _c : 'white';
|
|
8069
8077
|
const size = (_d = opt.size) !== null && _d !== void 0 ? _d : 12;
|
|
8078
|
+
const rotate = (_e = opt.rotate) !== null && _e !== void 0 ? _e : 0;
|
|
8070
8079
|
const anchor = size / 2;
|
|
8071
8080
|
const defSize = 12;
|
|
8072
|
-
const stroke =
|
|
8081
|
+
const stroke = opt.stroke !== undefined ? Number(opt.stroke) : STROKE;
|
|
8073
8082
|
const scale = size / defSize;
|
|
8074
8083
|
const pathAlias = opt.p || svgPath[shape] || 'circle';
|
|
8075
8084
|
const path = typeof pathAlias === 'string' ? pathAlias : pathAlias(opt);
|
|
8076
8085
|
const svg = insertSvg(opt.svg || generateSvg(size, size, stroke * scale, path));
|
|
8077
8086
|
const fistChild = svg.firstChild;
|
|
8078
|
-
const
|
|
8087
|
+
const scaledAnchor = defSize / 2;
|
|
8088
|
+
const transform = `scale(${scale}) rotate(${rotate}, ${scaledAnchor}, ${scaledAnchor})`;
|
|
8079
8089
|
fistChild.setAttribute('fill', color);
|
|
8080
8090
|
if (stroke) {
|
|
8081
8091
|
fistChild.setAttribute('stroke', strokeColor);
|