@dartcom/ui-kit 10.3.3 → 10.3.5
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBA2C5D,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -16531,7 +16531,7 @@ const getEntityNames = ({ entity, names, }) => {
|
|
|
16531
16531
|
return layerNames;
|
|
16532
16532
|
};
|
|
16533
16533
|
const getImageSrc = (path) => {
|
|
16534
|
-
const imageSrc = `${"
|
|
16534
|
+
const imageSrc = `${"https://dalganmap.ru/api-image/images"}/${path}`;
|
|
16535
16535
|
return imageSrc;
|
|
16536
16536
|
};
|
|
16537
16537
|
const loadState = (name) => {
|
|
@@ -39650,24 +39650,29 @@ var ConditionTypes;
|
|
|
39650
39650
|
|
|
39651
39651
|
const getConditionLayers = (source) => {
|
|
39652
39652
|
const layers = [];
|
|
39653
|
-
const sublayers = {};
|
|
39654
39653
|
const data = {
|
|
39655
39654
|
source,
|
|
39656
39655
|
layer: exports.SourceLayers.CONDITIONS,
|
|
39657
39656
|
};
|
|
39658
|
-
const layer = {
|
|
39659
|
-
id: getUniqueKey(),
|
|
39660
|
-
data,
|
|
39661
|
-
};
|
|
39662
39657
|
Object.values(ConditionTypes).forEach((conditionType) => {
|
|
39663
|
-
|
|
39658
|
+
const layer = {
|
|
39659
|
+
id: getUniqueKey(),
|
|
39664
39660
|
filter: `function() {
|
|
39665
39661
|
const { type } = feature;
|
|
39666
39662
|
|
|
39667
|
-
const
|
|
39663
|
+
const isType = type === '${conditionType}';
|
|
39668
39664
|
|
|
39669
|
-
|
|
39665
|
+
switch(type) {
|
|
39666
|
+
case '${ConditionTypes.gate}': {
|
|
39667
|
+
return $zoom >= 18 && isType;
|
|
39668
|
+
}
|
|
39669
|
+
|
|
39670
|
+
default: {
|
|
39671
|
+
return isType;
|
|
39672
|
+
}
|
|
39673
|
+
}
|
|
39670
39674
|
}`,
|
|
39675
|
+
data,
|
|
39671
39676
|
draw: {
|
|
39672
39677
|
points: {
|
|
39673
39678
|
texture: conditionType,
|
|
@@ -39676,9 +39681,8 @@ const getConditionLayers = (source) => {
|
|
|
39676
39681
|
},
|
|
39677
39682
|
},
|
|
39678
39683
|
};
|
|
39684
|
+
layers.push(layer);
|
|
39679
39685
|
});
|
|
39680
|
-
layer.sublayers = sublayers;
|
|
39681
|
-
layers.push(layer);
|
|
39682
39686
|
return layers;
|
|
39683
39687
|
};
|
|
39684
39688
|
|
|
@@ -43362,9 +43366,9 @@ const getLayerModalsNames = (layer) => {
|
|
|
43362
43366
|
|
|
43363
43367
|
const tile_size = 256;
|
|
43364
43368
|
const sourceUrl = {
|
|
43365
|
-
[exports.TangramSourceNames.TILE]: `${"
|
|
43366
|
-
[exports.TangramSourceNames.NATURE_TILE]: `${"
|
|
43367
|
-
[exports.TangramSourceNames.MSK]: `${"
|
|
43369
|
+
[exports.TangramSourceNames.TILE]: `${"https://dalganmap.ru/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
|
|
43370
|
+
[exports.TangramSourceNames.NATURE_TILE]: `${"https://dalganmap.ru/api"}/tiles/get_nature_tile/{z}/{x}/{y}.mvt`,
|
|
43371
|
+
[exports.TangramSourceNames.MSK]: `${"https://dalganmap.ru/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
|
|
43368
43372
|
};
|
|
43369
43373
|
|
|
43370
43374
|
function extendContext(source, extra) {
|