@nextgis/ngw-leaflet 1.18.1 → 1.18.2
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 +6 -4
- 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 +6 -4
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +2 -2
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 1.18.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 1.18.2; author: NextGIS */
|
|
2
2
|
var NgwLeaflet = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -22997,22 +22997,24 @@ var NgwLeaflet = (function () {
|
|
|
22997
22997
|
return oDOM.documentElement;
|
|
22998
22998
|
}
|
|
22999
22999
|
function getIcon(opt) {
|
|
23000
|
-
var _a, _b, _c, _d;
|
|
23000
|
+
var _a, _b, _c, _d, _e;
|
|
23001
23001
|
if (opt === void 0) { opt = {}; }
|
|
23002
23002
|
// default values
|
|
23003
23003
|
var shape = (_a = opt.shape) !== null && _a !== void 0 ? _a : 'circle';
|
|
23004
23004
|
var color = (_b = opt.color) !== null && _b !== void 0 ? _b : 'blue';
|
|
23005
23005
|
var strokeColor = (_c = opt.strokeColor) !== null && _c !== void 0 ? _c : 'white';
|
|
23006
23006
|
var size = (_d = opt.size) !== null && _d !== void 0 ? _d : 12;
|
|
23007
|
+
var rotate = (_e = opt.rotate) !== null && _e !== void 0 ? _e : 0;
|
|
23007
23008
|
var anchor = size / 2;
|
|
23008
23009
|
var defSize = 12;
|
|
23009
|
-
var stroke =
|
|
23010
|
+
var stroke = opt.stroke !== undefined ? Number(opt.stroke) : STROKE;
|
|
23010
23011
|
var scale = size / defSize;
|
|
23011
23012
|
var pathAlias = opt.p || svgPath[shape] || 'circle';
|
|
23012
23013
|
var path = typeof pathAlias === 'string' ? pathAlias : pathAlias(opt);
|
|
23013
23014
|
var svg = insertSvg(opt.svg || generateSvg(size, size, stroke * scale, path));
|
|
23014
23015
|
var fistChild = svg.firstChild;
|
|
23015
|
-
var
|
|
23016
|
+
var scaledAnchor = defSize / 2;
|
|
23017
|
+
var transform = "scale(".concat(scale, ") rotate(").concat(rotate, ", ").concat(scaledAnchor, ", ").concat(scaledAnchor, ")");
|
|
23016
23018
|
fistChild.setAttribute('fill', color);
|
|
23017
23019
|
if (stroke) {
|
|
23018
23020
|
fistChild.setAttribute('stroke', strokeColor);
|