@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.
- package/lib/ngw-leaflet.esm-browser.js +16 -6
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +16 -6
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 1.18.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 1.18.3; author: NextGIS */
|
|
2
2
|
function styleInject(css, ref) {
|
|
3
3
|
if ( ref === void 0 ) ref = {};
|
|
4
4
|
var insertAt = ref.insertAt;
|
|
@@ -19457,8 +19457,10 @@ function createGeoJsonFeature(item) {
|
|
|
19457
19457
|
return feature;
|
|
19458
19458
|
}
|
|
19459
19459
|
function updateItemRequestParam(params, options) {
|
|
19460
|
-
const { extensions, geom, fields, srs } = options;
|
|
19461
|
-
|
|
19460
|
+
const { extensions, geom, fields, srs, ilike, like } = options;
|
|
19461
|
+
if (extensions) {
|
|
19462
|
+
params.extensions = extensions.join(',');
|
|
19463
|
+
}
|
|
19462
19464
|
if (fields !== undefined) {
|
|
19463
19465
|
params.fields = Array.isArray(fields) ? fields.join(',') : '';
|
|
19464
19466
|
}
|
|
@@ -19469,6 +19471,12 @@ function updateItemRequestParam(params, options) {
|
|
|
19469
19471
|
delete params.geom_format;
|
|
19470
19472
|
}
|
|
19471
19473
|
}
|
|
19474
|
+
if (defined(ilike)) {
|
|
19475
|
+
params.ilike = ilike;
|
|
19476
|
+
}
|
|
19477
|
+
else if (defined(like)) {
|
|
19478
|
+
params.like = like;
|
|
19479
|
+
}
|
|
19472
19480
|
if (defined(srs)) {
|
|
19473
19481
|
params.srs = srs;
|
|
19474
19482
|
}
|
|
@@ -22087,21 +22095,23 @@ function insertSvg(svg) {
|
|
|
22087
22095
|
return oDOM.documentElement;
|
|
22088
22096
|
}
|
|
22089
22097
|
function getIcon(opt = {}) {
|
|
22090
|
-
var _a, _b, _c, _d;
|
|
22098
|
+
var _a, _b, _c, _d, _e;
|
|
22091
22099
|
// default values
|
|
22092
22100
|
const shape = (_a = opt.shape) !== null && _a !== void 0 ? _a : 'circle';
|
|
22093
22101
|
const color = (_b = opt.color) !== null && _b !== void 0 ? _b : 'blue';
|
|
22094
22102
|
const strokeColor = (_c = opt.strokeColor) !== null && _c !== void 0 ? _c : 'white';
|
|
22095
22103
|
const size = (_d = opt.size) !== null && _d !== void 0 ? _d : 12;
|
|
22104
|
+
const rotate = (_e = opt.rotate) !== null && _e !== void 0 ? _e : 0;
|
|
22096
22105
|
const anchor = size / 2;
|
|
22097
22106
|
const defSize = 12;
|
|
22098
|
-
const stroke =
|
|
22107
|
+
const stroke = opt.stroke !== undefined ? Number(opt.stroke) : STROKE;
|
|
22099
22108
|
const scale = size / defSize;
|
|
22100
22109
|
const pathAlias = opt.p || svgPath[shape] || 'circle';
|
|
22101
22110
|
const path = typeof pathAlias === 'string' ? pathAlias : pathAlias(opt);
|
|
22102
22111
|
const svg = insertSvg(opt.svg || generateSvg(size, size, stroke * scale, path));
|
|
22103
22112
|
const fistChild = svg.firstChild;
|
|
22104
|
-
const
|
|
22113
|
+
const scaledAnchor = defSize / 2;
|
|
22114
|
+
const transform = `scale(${scale}) rotate(${rotate}, ${scaledAnchor}, ${scaledAnchor})`;
|
|
22105
22115
|
fistChild.setAttribute('fill', color);
|
|
22106
22116
|
if (stroke) {
|
|
22107
22117
|
fistChild.setAttribute('stroke', strokeColor);
|