@dartcom/ui-kit 3.4.2 → 3.5.0
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/dist/components/form/hooks/useFormContext.js +11 -0
- package/dist/components/form/hooks/useFormContext.js.map +1 -0
- package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.js +19 -1
- package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.js.map +1 -1
- package/dist/components/layers/leaflet/leaflet.js +3 -5
- package/dist/components/layers/leaflet/leaflet.js.map +1 -1
- package/dist/components/select/select.js +4 -10
- package/dist/components/select/select.js.map +1 -1
- package/dist/esm/types/components/form/hooks/index.d.ts +2 -0
- package/dist/esm/types/components/form/hooks/index.d.ts.map +1 -0
- package/dist/esm/types/components/form/hooks/useFormContext.d.ts +2 -0
- package/dist/esm/types/components/form/hooks/useFormContext.d.ts.map +1 -0
- package/dist/esm/types/components/form/index.d.ts +1 -0
- package/dist/esm/types/components/form/index.d.ts.map +1 -1
- package/dist/esm/types/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts +6 -2
- package/dist/esm/types/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts.map +1 -1
- package/dist/esm/types/components/layers/leaflet/leaflet.d.ts.map +1 -1
- package/dist/esm/types/components/layers/leaflet/types.d.ts +24 -4
- package/dist/esm/types/components/layers/leaflet/types.d.ts.map +1 -1
- package/dist/esm/types/components/select/select.d.ts.map +1 -1
- package/dist/esm/types/components/select/select.stories.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/scene.yaml.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index_esm = require('../../../node_modules/react-hook-form/dist/index.esm.js');
|
|
4
|
+
|
|
5
|
+
const useFormContext = () => {
|
|
6
|
+
const formContext = index_esm.useFormContext();
|
|
7
|
+
return formContext;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
exports.useFormContext = useFormContext;
|
|
11
|
+
//# sourceMappingURL=useFormContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormContext.js","sources":["../../../../src/components/form/hooks/useFormContext.ts"],"sourcesContent":["import { useFormContext as _useFormContext } from 'react-hook-form';\n\nexport const useFormContext = () => {\n const formContext = _useFormContext();\n\n return formContext;\n};\n"],"names":["_useFormContext"],"mappings":";;;;AAEO,MAAM,cAAc,GAAG,MAAK;AACjC,IAAA,MAAM,WAAW,GAAGA,wBAAe,EAAE;AAErC,IAAA,OAAO,WAAW;AACpB;;;;"}
|
|
@@ -26,6 +26,8 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
26
26
|
const useGetLeafletLayer = () => {
|
|
27
27
|
const { instance: { isValidApiKey }, } = global.GlobalConfig;
|
|
28
28
|
const [layer, setLayer] = React__namespace.useState(null);
|
|
29
|
+
const [scene, setScene] = React__namespace.useState(null);
|
|
30
|
+
const [config, setConfig] = React__namespace.useState(null);
|
|
29
31
|
const getLeafletLayer = (isValidApiKey) => {
|
|
30
32
|
if (isValidApiKey) {
|
|
31
33
|
Promise.resolve().then(function () { return require('../../../../node_modules/tangram/dist/tangram.min.js'); }).then(() => {
|
|
@@ -33,7 +35,9 @@ const useGetLeafletLayer = () => {
|
|
|
33
35
|
const leafletLayer = window.Tangram.leafletLayer({
|
|
34
36
|
scene: sceneTiles,
|
|
35
37
|
});
|
|
38
|
+
const { scene } = leafletLayer;
|
|
36
39
|
setLayer(leafletLayer);
|
|
40
|
+
setScene(scene);
|
|
37
41
|
}
|
|
38
42
|
});
|
|
39
43
|
}
|
|
@@ -42,9 +46,23 @@ const useGetLeafletLayer = () => {
|
|
|
42
46
|
getLeafletLayer(isValidApiKey);
|
|
43
47
|
return () => {
|
|
44
48
|
setLayer(null);
|
|
49
|
+
setScene(null);
|
|
45
50
|
};
|
|
46
51
|
}, [isValidApiKey]);
|
|
47
|
-
|
|
52
|
+
React__namespace.useEffect(() => {
|
|
53
|
+
if (scene) {
|
|
54
|
+
scene.subscribe({
|
|
55
|
+
load: ({ config }) => {
|
|
56
|
+
setConfig(config);
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}, [scene]);
|
|
61
|
+
return {
|
|
62
|
+
layer,
|
|
63
|
+
scene,
|
|
64
|
+
config,
|
|
65
|
+
};
|
|
48
66
|
};
|
|
49
67
|
|
|
50
68
|
exports.useGetLeafletLayer = useGetLeafletLayer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetLeafletLayer.js","sources":["../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"sourcesContent":["import * as React from 'react';\r\n\r\nimport sceneTiles from '@/../scene.yaml';\r\nimport { GlobalConfig } from '@/configs';\r\nimport { Nullable } from '@/types';\r\n\r\nimport {
|
|
1
|
+
{"version":3,"file":"useGetLeafletLayer.js","sources":["../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"sourcesContent":["import * as React from 'react';\r\n\r\nimport sceneTiles from '@/../scene.yaml';\r\nimport { GlobalConfig } from '@/configs';\r\nimport { Nullable } from '@/types';\r\n\r\nimport {\r\n TangramEventConfig,\r\n TangramLeafletLayer,\r\n TangramScene,\r\n} from '../types';\r\n\r\nexport const useGetLeafletLayer = () => {\r\n const {\r\n instance: { isValidApiKey },\r\n } = GlobalConfig;\r\n\r\n const [layer, setLayer] = React.useState<Nullable<TangramLeafletLayer>>(null);\r\n const [scene, setScene] = React.useState<Nullable<TangramScene>>(null);\r\n const [config, setConfig] =\r\n React.useState<Nullable<TangramEventConfig>>(null);\r\n\r\n const getLeafletLayer = (isValidApiKey: boolean) => {\r\n if (isValidApiKey) {\r\n import('tangram').then(() => {\r\n if (window.Tangram) {\r\n const leafletLayer = window.Tangram.leafletLayer({\r\n scene: sceneTiles,\r\n });\r\n\r\n const { scene } = leafletLayer;\r\n\r\n setLayer(leafletLayer);\r\n setScene(scene);\r\n }\r\n });\r\n }\r\n };\r\n\r\n React.useEffect(() => {\r\n getLeafletLayer(isValidApiKey);\r\n\r\n return () => {\r\n setLayer(null);\r\n setScene(null);\r\n };\r\n }, [isValidApiKey]);\r\n\r\n React.useEffect(() => {\r\n if (scene) {\r\n scene.subscribe({\r\n load: ({ config }) => {\r\n setConfig(config);\r\n },\r\n });\r\n }\r\n }, [scene]);\r\n\r\n return {\r\n layer,\r\n scene,\r\n config,\r\n };\r\n};\r\n"],"names":["GlobalConfig","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYO,MAAM,kBAAkB,GAAG,MAAK;IACrC,MAAM,EACJ,QAAQ,EAAE,EAAE,aAAa,EAAE,GAC5B,GAAGA,mBAAY;AAEhB,IAAA,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAGC,gBAAK,CAAC,QAAQ,CAAgC,IAAI,CAAC;AAC7E,IAAA,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAGA,gBAAK,CAAC,QAAQ,CAAyB,IAAI,CAAC;AACtE,IAAA,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GACvBA,gBAAK,CAAC,QAAQ,CAA+B,IAAI,CAAC;AAEpD,IAAA,MAAM,eAAe,GAAG,CAAC,aAAsB,KAAI;QACjD,IAAI,aAAa,EAAE;AACjB,YAAA,oDAAO,sDAAS,KAAC,CAAC,IAAI,CAAC,MAAK;AAC1B,gBAAA,IAAI,MAAM,CAAC,OAAO,EAAE;AAClB,oBAAA,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;AAC/C,wBAAA,KAAK,EAAE,UAAU;AAClB,qBAAA,CAAC;AAEF,oBAAA,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY;oBAE9B,QAAQ,CAAC,YAAY,CAAC;oBACtB,QAAQ,CAAC,KAAK,CAAC;gBACjB;AACF,YAAA,CAAC,CAAC;QACJ;AACF,IAAA,CAAC;AAED,IAAAA,gBAAK,CAAC,SAAS,CAAC,MAAK;QACnB,eAAe,CAAC,aAAa,CAAC;AAE9B,QAAA,OAAO,MAAK;YACV,QAAQ,CAAC,IAAI,CAAC;YACd,QAAQ,CAAC,IAAI,CAAC;AAChB,QAAA,CAAC;AACH,IAAA,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;AAEnB,IAAAA,gBAAK,CAAC,SAAS,CAAC,MAAK;QACnB,IAAI,KAAK,EAAE;YACT,KAAK,CAAC,SAAS,CAAC;AACd,gBAAA,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAI;oBACnB,SAAS,CAAC,MAAM,CAAC;gBACnB,CAAC;AACF,aAAA,CAAC;QACJ;AACF,IAAA,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAEX,OAAO;QACL,KAAK;QACL,KAAK;QACL,MAAM;KACP;AACH;;;;"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var global = require('../../../configs/global/global.js');
|
|
7
6
|
var useGetLeafletLayer = require('./hooks/useGetLeafletLayer.js');
|
|
8
7
|
var hooks = require('../../../node_modules/react-leaflet/lib/hooks.js');
|
|
9
8
|
|
|
@@ -27,14 +26,13 @@ function _interopNamespaceDefault(e) {
|
|
|
27
26
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
27
|
|
|
29
28
|
const LeafletLayer = () => {
|
|
30
|
-
const {
|
|
31
|
-
const layer = useGetLeafletLayer.useGetLeafletLayer();
|
|
29
|
+
const { layer } = useGetLeafletLayer.useGetLeafletLayer();
|
|
32
30
|
const map = hooks.useMap();
|
|
33
31
|
React__namespace.useEffect(() => {
|
|
34
|
-
if (layer
|
|
32
|
+
if (layer) {
|
|
35
33
|
map.addLayer(layer);
|
|
36
34
|
}
|
|
37
|
-
}, [layer
|
|
35
|
+
}, [layer]);
|
|
38
36
|
return null;
|
|
39
37
|
};
|
|
40
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaflet.js","sources":["../../../../src/components/layers/leaflet/leaflet.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useMap } from 'react-leaflet';\n\nimport {
|
|
1
|
+
{"version":3,"file":"leaflet.js","sources":["../../../../src/components/layers/leaflet/leaflet.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useMap } from 'react-leaflet';\n\nimport { useGetLeafletLayer } from './hooks/useGetLeafletLayer';\n\nconst LeafletLayer: React.FC = () => {\n const { layer } = useGetLeafletLayer();\n\n const map = useMap();\n\n React.useEffect(() => {\n if (layer) {\n map.addLayer(layer);\n }\n }, [layer]);\n\n return null;\n};\n\nexport default LeafletLayer;\n"],"names":["useGetLeafletLayer","useMap","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,YAAY,GAAa,MAAK;AAClC,IAAA,MAAM,EAAE,KAAK,EAAE,GAAGA,qCAAkB,EAAE;AAEtC,IAAA,MAAM,GAAG,GAAGC,YAAM,EAAE;AAEpB,IAAAC,gBAAK,CAAC,SAAS,CAAC,MAAK;QACnB,IAAI,KAAK,EAAE;AACT,YAAA,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC;QACrB;AACF,IAAA,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AAEX,IAAA,OAAO,IAAI;AACb;;;;"}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var index_esm = require('../../node_modules/react-hook-form/dist/index.esm.js');
|
|
8
|
+
var textField = require('../text-field/text-field.js');
|
|
8
9
|
var Autocomplete = require('../../node_modules/@mui/material/esm/Autocomplete/Autocomplete.js');
|
|
9
|
-
var TextField = require('../../node_modules/@mui/material/esm/TextField/TextField.js');
|
|
10
10
|
|
|
11
11
|
function _interopNamespaceDefault(e) {
|
|
12
12
|
var n = Object.create(null);
|
|
@@ -31,21 +31,15 @@ function CustomSelect({ name, items, label, sx, getLabel, getValue, getKey, }) {
|
|
|
31
31
|
const { watch, resetField, setValue } = index_esm.useFormContext();
|
|
32
32
|
const formValue = watch(name);
|
|
33
33
|
const selectId = React__namespace.useId();
|
|
34
|
-
const value = items.find((item) => getValue(item) === formValue)
|
|
35
|
-
return (jsxRuntime.jsx(Autocomplete.default, { value: value, options: items, id: selectId, getOptionLabel: (item) => {
|
|
36
|
-
const optionLabel = item ? getLabel(item) : '';
|
|
37
|
-
return optionLabel;
|
|
38
|
-
}, getOptionKey: (item) => {
|
|
39
|
-
const optionKey = item ? getKey(item) : '';
|
|
40
|
-
return optionKey;
|
|
41
|
-
}, sx: { minWidth: 150, ...sx }, size: "small", onChange: (_, newValue) => {
|
|
34
|
+
const value = items.find((item) => getValue(item) === formValue);
|
|
35
|
+
return (jsxRuntime.jsx(Autocomplete.default, { value: value, options: items, id: selectId, getOptionLabel: (item) => getLabel(item), getOptionKey: (item) => getKey(item), sx: { minWidth: 150, ...sx }, size: "small", onChange: (_, newValue) => {
|
|
42
36
|
if (newValue) {
|
|
43
37
|
setValue(name, getValue(newValue));
|
|
44
38
|
}
|
|
45
39
|
else {
|
|
46
40
|
resetField(name);
|
|
47
41
|
}
|
|
48
|
-
}, renderInput: (params) => jsxRuntime.jsx(
|
|
42
|
+
}, renderInput: (params) => jsxRuntime.jsx(textField.default, { ...params, label: label }) }));
|
|
49
43
|
}
|
|
50
44
|
|
|
51
45
|
exports.default = CustomSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":["../../../src/components/select/select.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport { SxProps
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../../src/components/select/select.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport { SxProps } from '@mui/material';\r\nimport Autocomplete from '@mui/material/Autocomplete';\r\nimport { FieldValues, Path, PathValue, useFormContext } from 'react-hook-form';\r\n\r\nimport { StringOrNumber } from '@/types';\r\n\r\nimport { TextField } from '../text-field';\r\n\r\ninterface SelectProps<V, O> {\r\n name: Path<V>;\r\n items: O[];\r\n label: string;\r\n\r\n sx?: SxProps;\r\n\r\n getLabel: (item: O) => string;\r\n getKey: (item: O) => StringOrNumber;\r\n getValue: (item: O) => PathValue<V, Path<V>>;\r\n}\r\n\r\nfunction CustomSelect<V extends FieldValues, O>({\r\n name,\r\n items,\r\n label,\r\n\r\n sx,\r\n\r\n getLabel,\r\n getValue,\r\n getKey,\r\n}: SelectProps<V, O>): React.ReactNode {\r\n const { watch, resetField, setValue } = useFormContext<V>();\r\n\r\n const formValue = watch(name);\r\n\r\n const selectId = React.useId();\r\n\r\n const value = items.find((item) => getValue(item) === formValue);\r\n\r\n return (\r\n <Autocomplete\r\n value={value}\r\n options={items}\r\n id={selectId}\r\n getOptionLabel={(item) => getLabel(item)}\r\n getOptionKey={(item) => getKey(item)}\r\n sx={{ minWidth: 150, ...sx }}\r\n size=\"small\"\r\n onChange={(_, newValue) => {\r\n if (newValue) {\r\n setValue(name, getValue(newValue));\r\n } else {\r\n resetField(name);\r\n }\r\n }}\r\n renderInput={(params) => <TextField {...params} label={label} />}\r\n />\r\n );\r\n}\r\n\r\nexport default CustomSelect;\r\n"],"names":["useFormContext","React","_jsx","Autocomplete","TextField"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,YAAY,CAA2B,EAC9C,IAAI,EACJ,KAAK,EACL,KAAK,EAEL,EAAE,EAEF,QAAQ,EACR,QAAQ,EACR,MAAM,GACY,EAAA;IAClB,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAGA,wBAAc,EAAK;AAE3D,IAAA,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;AAE7B,IAAA,MAAM,QAAQ,GAAGC,gBAAK,CAAC,KAAK,EAAE;AAE9B,IAAA,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;AAEhE,IAAA,QACEC,cAAA,CAACC,oBAAY,EAAA,EACX,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,KAAK,EACd,EAAE,EAAE,QAAQ,EACZ,cAAc,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC,EACxC,YAAY,EAAE,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,EACpC,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAC5B,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAI;YACxB,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACpC;iBAAO;gBACL,UAAU,CAAC,IAAI,CAAC;YAClB;AACF,QAAA,CAAC,EACD,WAAW,EAAE,CAAC,MAAM,KAAKD,cAAA,CAACE,iBAAS,EAAA,EAAA,GAAK,MAAM,EAAE,KAAK,EAAE,KAAK,EAAA,CAAI,EAAA,CAChE;AAEN;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/hooks/useFormContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kIAI1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Nullable } from '@/types';
|
|
2
|
-
import { TangramLeafletLayer } from '../types';
|
|
3
|
-
export declare const useGetLeafletLayer: () =>
|
|
2
|
+
import { TangramEventConfig, TangramLeafletLayer, TangramScene } from '../types';
|
|
3
|
+
export declare const useGetLeafletLayer: () => {
|
|
4
|
+
layer: Nullable<TangramLeafletLayer>;
|
|
5
|
+
scene: Nullable<TangramScene>;
|
|
6
|
+
config: Nullable<TangramEventConfig>;
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=useGetLeafletLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,
|
|
1
|
+
{"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,kBAAkB;;;;CAmD9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaflet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/leaflet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"leaflet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/leaflet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAYzB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type TangramLeafletLayerEvent = {
|
|
2
2
|
leaflet_event: {
|
|
3
3
|
latlng: L.LatLng;
|
|
4
4
|
};
|
|
@@ -13,11 +13,31 @@ export type LeafletEvent = {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
export type TangramCustomLayer = {
|
|
17
|
+
visible: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type TangramEventConfigLayerNames = 'Building' | 'CityPOI' | 'POI' | 'PointAddress' | 'Condition' | 'Link' | 'WaterLink';
|
|
20
|
+
export type TangramEventConfig = {
|
|
21
|
+
layers: {
|
|
22
|
+
[K in TangramEventConfigLayerNames]: TangramCustomLayer;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type TangramEvent = {
|
|
26
|
+
config: TangramEventConfig;
|
|
27
|
+
};
|
|
28
|
+
export type TangramScene = {
|
|
29
|
+
updateConfig: (props?: {
|
|
30
|
+
rebuild: boolean;
|
|
31
|
+
}) => void;
|
|
32
|
+
subscribe: (props: {
|
|
33
|
+
load: (event: TangramEvent) => void;
|
|
34
|
+
}) => void;
|
|
35
|
+
};
|
|
16
36
|
export type TangramLeafletLayer = L.Layer & {
|
|
17
37
|
setSelectionEvents: (props: {
|
|
18
|
-
click?: (event:
|
|
19
|
-
hover?: (event:
|
|
38
|
+
click?: (event: TangramLeafletLayerEvent) => void;
|
|
39
|
+
hover?: (event: TangramLeafletLayerEvent) => void;
|
|
20
40
|
}) => void;
|
|
21
|
-
scene:
|
|
41
|
+
scene: TangramScene;
|
|
22
42
|
};
|
|
23
43
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE;QACb,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,YAAY,EAAE,gBAAgB,GAAG,qBAAqB,CAAC;QACvD,UAAU,EAAE;YACV,OAAO,EAAE,MAAM,CAAC;YAEhB,gBAAgB,EAAE,MAAM,CAAC;YACzB,OAAO,EAAE,MAAM,CAAC;YAChB,eAAe,EAAE,MAAM,CAAC;YACxB,iBAAiB,EAAE,MAAM,CAAC;SAC3B,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC,UAAU,GACV,SAAS,GACT,KAAK,GACL,cAAc,GACd,WAAW,GACX,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE;SACL,CAAC,IAAI,4BAA4B,GAAG,kBAAkB;KACxD,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACrD,SAAS,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;KAAE,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,GAAG;IAC1C,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAC1B,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;QAClD,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;KACnD,KAAK,IAAI,CAAC;IACX,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAkB,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,UAAU,WAAW,CAAC,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,OAAO,CAAC;IAEb,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,cAAc,CAAC;IACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9C;AAED,iBAAS,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,EAAE,EAC9C,IAAI,EACJ,KAAK,EACL,KAAK,EAEL,EAAE,EAEF,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CA4BrC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAO7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAO7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAsBnC,eAAO,MAAM,OAAO,EAAE,KA2BrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA+B9B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var _delete = require('./components/buttons/delete/delete.js');
|
|
|
6
6
|
var edit = require('./components/buttons/edit/edit.js');
|
|
7
7
|
var checkbox = require('./components/checkbox/checkbox.js');
|
|
8
8
|
var form = require('./components/form/form.js');
|
|
9
|
+
var useFormContext = require('./components/form/hooks/useFormContext.js');
|
|
9
10
|
var select = require('./components/select/select.js');
|
|
10
11
|
var input = require('./components/input/input.js');
|
|
11
12
|
var dragList = require('./components/drag-list/drag-list.js');
|
|
@@ -24,6 +25,7 @@ exports.DeleteButton = _delete.default;
|
|
|
24
25
|
exports.EditButton = edit.default;
|
|
25
26
|
exports.Checkbox = checkbox.default;
|
|
26
27
|
exports.Form = form.default;
|
|
28
|
+
exports.useFormContext = useFormContext.useFormContext;
|
|
27
29
|
exports.Select = select.default;
|
|
28
30
|
exports.Input = input.default;
|
|
29
31
|
exports.DragList = dragList.default;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/scene.yaml.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var n={global:{pointAddress:{zoom:{min:15},font:{fill:"black",size:"12px"}},POI:{order:800,size:"20px",text_source:"poi_name",functions:{checkIsMail:"function(feature) {\n const { poi_name = '' } = feature;\n\n const isMail = poi_name.startsWith('Почта');\n\n return isMail;\n}\n"},font:{fill:"#464544",size:"12px"}},builtupAreas:{order:200},landuseAreas:{order:300},links:{getIsConstruction:"function (feature) {\n const { construction } = feature;\n\n return construction;\n}\n",getIsFunctionalClass:"function (feature) {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",getIsLowMobility:"function (feature) {\n const { functional_class, low_mobility } = feature;\n\n return functional_class === 5 && low_mobility === 1;\n}\n",order:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n switch (z_lvl) {\n case '2.0': {\n return 612;\n }\n\n case '1.5': {\n return 611;\n }\n\n case '1.0': {\n return 610;\n }\n\n case '0.7': {\n return 609;\n }\n\n case '0.5': {\n return 608;\n }\n\n case '0.3': {\n return 607;\n }\n\n case '0.0': {\n switch(functional_class) {\n case 1:\n case 2: {\n return 606;\n }\n\n case 3:\n case 4: {\n return 605;\n }\n\n case 5: { return 604; }\n }\n }\n\n case '-0.3': {\n return 603;\n }\n\n case '-0.5': {\n return 602;\n }\n\n case '-1.0': {\n return 601;\n }\n }\n}\n",filter:"function() {\n const { functional_class } = feature;\n\n switch (functional_class) {\n case 5: {\n const isZoom = $zoom >= 12;\n\n return isZoom;\n }\n\n default: {\n return true;\n }\n }\n}\n",color:"function() {\n const { functional_class, tunnel, tollway } = feature;\n\n const alpha = tunnel ? 0.89 : 1;\n\n const getRGB = (hex, alpha) => {\n const r = +(parseInt(hex.slice(1, 3), 16) / 255).toFixed(2);\n const g = +(parseInt(hex.slice(3, 5), 16) / 255).toFixed(2);\n const b = +(parseInt(hex.slice(5, 7), 16) / 255).toFixed(2);\n\n return [r, g, b, alpha];\n }\n\n if (tollway) {\n return '#D72740';\n }\n\n switch (functional_class) {\n case 1:\n case 2: {\n const color = getRGB('#D1747F', alpha);\n\n return color;\n }\n\n case 3:\n case 4: {\n const color = getRGB('#B1A7AA', alpha);\n\n return color;\n }\n\n case 5: {\n const color = getRGB('#D5CEC3', alpha);\n\n return color;\n }\n }\n}\n",width:"function() {\n const { functional_class, road_number } = feature;\n\n const getScale = () => {\n if ($zoom <= 15 && $zoom >= 14) { return 7; }\n\n if ($zoom <= 13 && $zoom >= 12) {\n return 9; \n }\n\n if ($zoom <= 5) { return 400; }\n\n if ($zoom <= 7) { return 200; }\n\n if ($zoom < 12) { return 50; }\n\n return 1;\n }\n\n const scale = getScale();\n\n switch(functional_class) {\n case 1:\n case 2: {\n return 8 * scale;\n }\n\n case 3:\n case 4: {\n return 7 * scale;\n }\n\n case 5: {\n if (Boolean(road_number)) {\n return 7 * scale;\n }\n\n return 6;\n }\n }\n}\n",outline:{color:"function() {\n const { functional_class, access_id, tollway } = feature;\n\n if (tollway) {\n return '#B9263B';\n }\n\n switch(functional_class) {\n case 5: {\n return '#989898';\n }\n\n case 3:\n case 4: {\n return '#8F6E78';\n }\n\n case 1:\n case 2: {\n return '#9A414B';\n }\n }\n}\n",width:"function() {\n const { functional_class, access_id } = feature;\n\n switch(functional_class) {\n case 5: {\n switch (access_id) {\n case 32: {\n return 0;\n }\n\n default: {\n return 1;\n }\n }\n }\n\n default: {\n return 1;\n }\n }\n}\n"}}},cameras:{camera1:{type:"perspective",vanishing_point:[0,-500]}},textures:{arrow:{url:"https://dalganmap.ru/api-image/images/arrow-20.png",sprites:{base:[0,0,20,20]}},"traffic-signal":{url:"https://dalganmap.ru/api-image/images/conditions/traffic-signal.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},pedestrian_crossing:{url:"https://dalganmap.ru/api-image/images/conditions/pedestrian_crossing.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},physical:{url:"https://dalganmap.ru/api-image/images/conditions/physical.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},gate:{url:"https://dalganmap.ru/api-image/images/conditions/gate.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_3578:{url:"https://dalganmap.ru/api-image/images/POI/3578.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5813:{url:"https://dalganmap.ru/api-image/images/POI/5813.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5541:{url:"https://dalganmap.ru/api-image/images/POI/5541.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5540:{url:"https://dalganmap.ru/api-image/images/POI/5540.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9530(Mail)":{url:"https://dalganmap.ru/api-image/images/POI/mail.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9530(Delivery)":{url:"https://dalganmap.ru/api-image/images/POI/delivery.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5400:{url:"https://dalganmap.ru/api-image/images/POI/5400.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_6000:{url:"https://dalganmap.ru/api-image/images/POI/6000.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9565:{url:"https://dalganmap.ru/api-image/images/POI/9565.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9583:{url:"https://dalganmap.ru/api-image/images/POI/9583.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_8060:{url:"https://dalganmap.ru/api-image/images/POI/8060.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5511:{url:"https://dalganmap.ru/api-image/images/POI/5511.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5512:{url:"https://dalganmap.ru/api-image/images/POI/5512.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5800:{url:"https://dalganmap.ru/api-image/images/POI/5800.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5999:{url:"https://dalganmap.ru/api-image/images/POI/5999.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7011:{url:"https://dalganmap.ru/api-image/images/POI/7011.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7389:{url:"https://dalganmap.ru/api-image/images/POI/7389.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7832:{url:"https://dalganmap.ru/api-image/images/POI/7832.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7929:{url:"https://dalganmap.ru/api-image/images/POI/7929.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7990:{url:"https://dalganmap.ru/api-image/images/POI/7990.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7999:{url:"https://dalganmap.ru/api-image/images/POI/7999.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_8410:{url:"https://dalganmap.ru/api-image/images/POI/8410.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9517:{url:"https://dalganmap.ru/api-image/images/POI/9517.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9718:{url:"https://dalganmap.ru/api-image/images/POI/9718.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(mosque)":{url:"https://dalganmap.ru/api-image/images/POI/9992_mosque.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(church)":{url:"https://dalganmap.ru/api-image/images/POI/9992_church.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(temple)":{url:"https://dalganmap.ru/api-image/images/POI/9992_temple.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(davidStar)":{url:"https://dalganmap.ru/api-image/images/POI/9992_davidStar.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(mortar)":{url:"https://dalganmap.ru/api-image/images/POI/9992_mortar.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_4100(metro)":{url:"https://dalganmap.ru/api-image/images/POI/4100_metro.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_4100(diameter)":{url:"https://dalganmap.ru/api-image/images/POI/4100_diameter.png",filtering:"mipmap",sprites:{base:[0,0,41,15]}},POI_4013:{url:"https://dalganmap.ru/api-image/images/POI/4013.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}}},layers:{linksRoadNames:{data:{source:"tile",layer:'"Link"'},draw:{text:{text_source:"road_number",font:{fill:"#181bff",size:"16px",weight:"bold",underline:!0,background:{color:"black"}}}}},cityPOI:{data:{source:"tile",layer:'"CityPOI"'},filter:"function() {\n const { capital_order8, capital_order2, capital_order1, poi_name, priority } = feature;\n \n if ($zoom >= 9 && $zoom < 13) {\n return priority < 8;\n }\n\n if ($zoom <= 11) {\n return capital_order8 === 'Y';\n }\n\n if ($zoom >= 15) {\n return capital_order2 !== 'Y';\n }\n\n return true;\n}\n",draw:{text:{priority:"function () {\n const { priority } = feature;\n\n if ($zoom <= 15) {\n return priority;\n }\n\n return 1;\n}\n",text_source:"poi_name",font:{fill:"black",size:"function () {\n const { capital_order8 } = feature;\n\n if (capital_order8 === 'Y') {\n return '16px';\n }\n\n return '12px';\n}\n",weight:"function () {\n const { capital_order2 } = feature;\n\n if (capital_order2 === 'Y') {\n return 'bold';\n }\n\n return 'normal';\n}\n",stroke:{color:"white",width:"2px"}}}}},POI_3578:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 3578;\n}\n",draw:{points:{texture:"POI_3578",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5813:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5813;\n}\n",draw:{points:{texture:"POI_5813",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5541:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5541;\n}\n",draw:{points:{texture:"POI_5541",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5540:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5540;\n}\n",draw:{points:{texture:"POI_5540",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9530(Mail)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, poi_name = '' } = feature;\n\n const isId = +cat_id === 9530;\n const isMail = global.POI.functions.checkIsMail(feature);\n\n return isId && isMail;\n}\n",draw:{points:{texture:"POI_9530(Mail)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9530(Delivery)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, poi_name = '' } = feature;\n\n const isId = +cat_id === 9530;\n const isMail = global.POI.functions.checkIsMail(feature);\n\n return isId && !isMail;\n}\n",draw:{points:{texture:"POI_9530(Delivery)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5400:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5400;\n}\n",draw:{points:{texture:"POI_5400",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_6000:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 6000;\n}\n",draw:{points:{texture:"POI_6000",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_9565:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9565;\n}\n",draw:{points:{texture:"POI_9565",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_9583:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9583;\n}\n",draw:{points:{texture:"POI_9583",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_8060:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 8060;\n}\n",draw:{points:{texture:"POI_8060",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5511:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5511;\n}\n",draw:{points:{texture:"POI_5511",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5512:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5512;\n}\n",draw:{points:{texture:"POI_5512",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"global.POI.text_source",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5800:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5800;\n}\n",draw:{points:{texture:"POI_5800",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"global.POI.text_source",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_5999:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5999;\n}\n",draw:{points:{texture:"POI_5999",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_7011:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7011;\n}\n",draw:{points:{texture:"POI_7011",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_7389:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7389;\n}\n",draw:{points:{texture:"POI_7389",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_7832:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7832;\n}\n",draw:{points:{texture:"POI_7832",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_7929:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7929;\n}\n",draw:{points:{texture:"POI_7929",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_7990:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7990;\n}\n",draw:{points:{texture:"POI_7990",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_8410:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 8410;\n}\n",draw:{points:{texture:"POI_8410",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_9517:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9517;\n}\n",draw:{points:{texture:"POI_9517",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_9718:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9718;\n}\n",draw:{points:{texture:"POI_9718",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9992(mosque)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, subcat_id } = feature;\n\n return +cat_id === 9992 && +subcat_id === 1;\n}\n",draw:{points:{texture:"POI_9992(mosque)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9992(church)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, subcat_id } = feature;\n\n return +cat_id === 9992 && +subcat_id === 2;\n}\n",draw:{points:{texture:"POI_9992(church)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9992(temple)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, subcat_id } = feature;\n\n return +cat_id === 9992 && +subcat_id === 3;\n}\n",draw:{points:{texture:"POI_9992(temple)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9992(davidStar)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, subcat_id } = feature;\n\n return +cat_id === 9992 && +subcat_id === 4;\n}\n",draw:{points:{texture:"POI_9992(davidStar)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_9992(mortar)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, subcat_id } = feature;\n\n return +cat_id === 9992 && +subcat_id === 6;\n}\n",draw:{points:{texture:"POI_9992(mortar)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_4100(metro)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, poi_name } = feature;\n\n const isMetro = poi_name.startsWith('Метро-');\n const isStation = poi_name.startsWith('Станция-');\n\n return +cat_id === 4100 && (isMetro || isStation);\n}\n",draw:{points:{texture:"POI_4100(metro)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"function() {\n const { poi_name } = feature;\n\n const isMetro = poi_name.startsWith('Метро-');\n const isStation = poi_name.startsWith('Станция-');\n\n if (isMetro) {\n return poi_name.replace('Метро-', '');\n }\n\n if (isStation) {\n return poi_name.replace('Станция-', '');\n }\n}\n",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},"POI_4100(diameter)":{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id, poi_name } = feature;\n\n const isDiameter = poi_name.startsWith('МЦД-');\n\n return +cat_id === 4100 && isDiameter;\n}\n",draw:{points:{texture:"POI_4100(diameter)",sprite:"base",size:[41,15],placement:"midpoint",order:"global.POI.order",text:{text_source:"function() {\n const { poi_name } = feature;\n\n return poi_name.replace('МЦД-', '');\n}\n",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},POI_4013:{data:{source:"tile",layer:'"POI"'},filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 4013;\n}\n",draw:{points:{texture:"POI_4013",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order",text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},pointAddresses:{data:{source:"tile",layer:'"PointAddress"',minzoom:"global.pointAddress.zoom.min"},draw:{text:{interactive:!0,text_source:"address",font:{fill:"global.pointAddress.font.fill",size:"global.pointAddress.font.size"}}}},"conditions(traffic_signal)":{data:{source:"tile",layer:'"Conditions"'},filter:"function() {\n const { type } = feature;\n\n const isShow = type === 'traffic_signal' && $zoom >= 17;\n\n return isShow;\n}\n",draw:{points:{texture:"traffic-signal",sprite:"base",placement:"midpoint",order:900,visible:"function() {\n return true;\n}\n"}}},"conditions(pedestrian_crossing)":{data:{source:"tile",layer:'"Conditions"'},filter:"function() {\n const { type } = feature;\n\n const isShow = type === 'pedestrian_crossing';\n\n return isShow && $zoom >= 17;\n}\n",draw:{points:{texture:"pedestrian_crossing",sprite:"base",placement:"midpoint",order:900,visible:"function() {\n return true;\n}\n"}}},"conditions(physical)":{data:{source:"tile",layer:'"Conditions"'},filter:"function() {\n const { type } = feature;\n\n const isShow = type === 'physical' && $zoom >= 17;\n\n return isShow;\n}\n",draw:{points:{texture:"physical",sprite:"base",placement:"midpoint",order:900,visible:"function() {\n return true;\n}\n"}}},"conditions(gate)":{data:{source:"tile",layer:'"Conditions"'},filter:"function() {\n const { type } = feature;\n\n const isShow = type === 'gate' && $zoom >= 17;\n\n return isShow;\n}\n",draw:{points:{texture:"gate",sprite:"base",placement:"midpoint",order:900,visible:"function() {\n return true;\n}\n"}}},oneWay:{data:{source:"tile",layer:'"OneWay"'},filter:"function() { return $zoom >= 17; }",draw:{points:{texture:"arrow",sprite:"base",angle:"function () {\n const { bearing } = feature;\n\n return bearing;\n}\n",order:900}}},"links(z_lvl=2)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '2.0';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:624,width:"global.links.width"}}},"links_border(z_lvl=2)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '2.0';\n}\n",draw:{lines:{color:"global.links.color",order:623,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=1.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.5';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:622,width:"global.links.width"}}},"links_border(z_lvl=1.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.5';\n}\n",draw:{lines:{color:"global.links.color",order:621,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.0';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:620,width:"global.links.width"}}},"links_border(z_lvl=1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.0';\n}\n",draw:{lines:{color:"global.links.color",order:619,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0.7)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.7';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:618,width:"global.links.width"}}},"links_border(z_lvl=0.7)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.7';\n}\n",draw:{lines:{color:"global.links.color",order:617,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.5';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:616,width:"global.links.width"}}},"links_border(z_lvl=0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.5';\n}\n",draw:{lines:{color:"global.links.color",order:615,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.3';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:614,width:"global.links.width"}}},"links_border(z_lvl=0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.3';\n}\n",draw:{lines:{color:"global.links.color",order:613,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0, FC-1/2)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 1 || functional_class === 2);\n}\n",draw:{text:{text_source:"street_name",priority:100,"text-ignore-placement":!0,font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:612,cap:"round",join:"round",width:"global.links.width"}},construction:{filter:"function() {\n return global.links.getIsConstruction(feature);\n}\n",draw:{lines:{dash:[3,1]}}},functionalClassAccessId32:{filter:"function() {\n return global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{width:2,color:"#9AA096",border:null,dash:[2,1]}}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links_border(z_lvl=0, FC-1/2)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 1 || functional_class === 2) && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{color:"global.links.color",order:609,cap:"round",join:"round",outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links(z_lvl=0, FC-3/4)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 3 || functional_class === 4);\n}\n",draw:{text:{text_source:"street_name",priority:100,font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:611,cap:"round",join:"round",width:"global.links.width"}},construction:{filter:"function() {\n return global.links.getIsConstruction(feature);\n}\n",draw:{lines:{dash:[3,1]}}},functionalClassAccessId32:{filter:"function() {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",draw:{lines:{width:2,color:"#9AA096",border:null,dash:[2,1]}}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links_border(z_lvl=0, FC-3/4)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 3 || functional_class === 4) && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{color:"global.links.color",order:608,cap:"round",join:"round",outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links(z_lvl=0, FC-5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && functional_class === 5;\n}\n",draw:{text:{text_source:"street_name",priority:100,font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:610,cap:"round",join:"round",width:"global.links.width"}},construction:{filter:"function() {\n return global.links.getIsConstruction(feature);\n}\n",draw:{lines:{dash:[3,1]}}},functionalClassAccessId32:{filter:"function() {\n return global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{width:2,color:"#9AA096",border:null,dash:[2,1]}}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links_border(z_lvl=0, FC-5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && functional_class === 5 && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{color:"global.links.color",order:607,cap:"round",join:"round",outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links(z_lvl=-0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.3';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:606,width:"global.links.width"}}},"links_border(z_lvl=-0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.3';\n}\n",draw:{lines:{color:"global.links.color",order:605,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=-0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.5';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{order:604,blend:"overlay",color:"global.links.color",width:"global.links.width"}}},"links_border(z_lvl=-0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.5';\n}\n",draw:{lines:{color:"global.links.color",order:603,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=-1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-1.0';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{blend:"overlay",color:"global.links.color",order:602,width:"global.links.width"}}},"links_border(z_lvl=-1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-1.0';\n}\n",draw:{lines:{color:"global.links.color",order:601,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},adminAreas:{data:{source:"tile",layer:'"MapAdminArea"'},draw:{polygons:{color:"#D3D2CF",order:100}}},adminAreasBorderRegion:{filter:"function() {\n const { type } = feature;\n\n return type === 'R';\n}\n",data:{source:"tile",layer:'"MapAdminArea"'},draw:{lines:{color:"#696969",width:"1px",order:450,cap:"round",join:"round"}}},adminAreasBorderDistrict:{filter:"function() {\n const { type } = feature;\n\n return type === 'D' && $zoom >= 12;\n}\n",data:{source:"tile",layer:'"MapAdminArea"'},draw:{lines:{color:"#696969",dash:[4,7],width:"1px",order:451,cap:"round",join:"round"}}},builtupAreas:{data:{source:"tile",layer:'"MapAdminBuiltupArea"'},draw:{polygons:{color:"#CFC8C8",order:"global.builtupAreas.order"}}},facilityAreas:{data:{source:"tile",layer:'"MapFacilityArea"'},draw:{polygons:{color:"function() {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '2000408': {\n return '#DBBAC4';\n }\n\n case '1900403': {\n return '#B6C3C7';\n }\n\n case '1907403': {\n return '#A3B9C0';\n }\n\n case '2000123': {\n return '#E4BA7D';\n }\n\n case '2000124': {\n return '#BFE6E3';\n }\n\n case '2000200': {\n return '#A0A9A8';\n }\n\n case '2000403': {\n return '#AF7136';\n }\n\n case '2000420': {\n return '#89AC76';\n }\n\n case '2000457': {\n return '#9494C0';\n }\n\n default: {\n return '#E1D4D4';\n }\n }\n}\n",order:"function () {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '1907403': {\n return 301;\n }\n\n default: {\n return 300;\n }\n }\n}\n"},lines:{color:"#857F7F",width:"2px",order:300,cap:"round",join:"round"}}},facilityAreasLabel:{filter:"function() {\n return $zoom >= 15;\n}\n",data:{source:"tile",layer:'"MapFacilityAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"function() {\n const { feature_type } = feature;\n\n switch(feature_type) {\n case '1900403':\n case '1907403': {\n return '#256D7B';\n }\n\n case '2000420':\n case '2000460':\n case '2000123': {\n return '#00541F';\n }\n\n case '2000408': {\n return '#5E2129';\n }\n\n case '2000124': {\n return '#3E5F8A';\n }\n\n case '2000200': {\n return '#464451';\n }\n\n case '2000403': {\n return '#B03F35';\n }\n\n case '2000457': {\n return '#6A5ACD';\n }\n\n case '1700215':\n case '900159':\n case '900158': {\n return '#474A51';\n }\n\n default: {\n return black;\n }\n }\n}\n",stroke:{color:"white",width:"3px"},size:"12px"}}}},"landuseAreas(tile)":{data:{source:"tile",layer:'"MapLanduseArea"'},draw:{polygons:{interactive:!0,color:"function() {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '509998': {\n return '#ECD175';\n }\n\n case '600102':\n case '900140': {\n return '#3E9A8C';\n }\n\n case '900202':\n case '900130': \n case '900150':\n case '900103': {\n return '#96BE7D';\n }\n\n case '9997010': {\n return null;\n }\n }\n}\n",order:"function () {\n const { feature_type } = feature;\n\n switch(feature_type) {\n case '900150':\n case '900130':\n case '509998': {\n return global.landuseAreas.order;\n }\n\n default: {\n return global.builtupAreas.order - 1;\n }\n }\n}\n"}}},"landuseAreas(nature_tile)":{data:{source:"nature_tile",layer:'"MapNatureForest"'},draw:{polygons:{interactive:!0,color:"function() {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '900202': {\n return '#96BE7D';\n }\n\n default : {\n return null;\n }\n }\n}\n",order:"function () {\n return global.builtupAreas.order - 2;\n}\n"}}},landuseAreasLabel:{filter:"function() {\n return $zoom >= 15;\n}\n",data:{source:"tile",layer:'"MapLanduseAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"function() {\n const { feature_type } = feature;\n\n switch(feature_type) {\n case '509998': {\n return '#CD7F32';\n }\n\n default: {\n return '#00541F';\n }\n }\n}\n",stroke:{color:"white",width:"3px"},size:"13px"}}}},"natureField(nature_tile)":{data:{source:"nature_tile",layer:'"MapNatureField"'},draw:{polygons:{interactive:!0,color:"function() {\n return '#EBEEC7';\n}\n",order:"function () {\n return global.builtupAreas.order - 1;\n}\n"}}},railroads:{data:{source:"tile",layer:'"MapRailroadLink"'},draw:{lines:{dash:[2,1],width:5,color:"#5C5F5F",order:501,cap:"round",join:"round"}}},railroadsBack:{data:{source:"tile",layer:'"MapRailroadLink"'},draw:{lines:{width:6,color:"#A3A8A",order:500,cap:"round",join:"round"}}},waterAreas:{data:{source:"tile",layer:'"MapWaterArea"'},draw:{polygons:{color:"#7DBEE4",order:350},lines:{color:"#7DBEE4",order:350,width:20,cap:"round",join:"round"}}},oceanAreas:{data:{source:"tile",layer:'"MapOceanArea"'},draw:{polygons:{color:"#7DBEE4",order:350}}},waterAreaLabel:{filter:"function() {\n const { display_class } = feature;\n\n if ($zoom >= 14) {\n return true;\n } else {\n return display_class <= 4;\n }\n}\n",data:{source:"tile",layer:'"MapWaterAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"14px"}}}},waterLakeLabel:{filter:"function() {\n const { display_class } = feature;\n\n if ($zoom >= 14) {\n return true;\n } else {\n return display_class <= 4;\n }\n}\n",data:{source:"tile",layer:'"MapWaterLakeLabel"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"14px"}}}},oceanAreaLabel:{data:{source:"tile",layer:'"MapOceanAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"18px"}}}},waterLinksGeometry:{data:{source:"tile",layer:'"MapWaterLink"'},draw:{lines:{color:"#7DBEE4",width:5,order:400,cap:"round",join:"round"}}},waterLinksText:{filter:"function() { return $zoom >= 10; }",data:{source:"tile",layer:'"MapWaterLink"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"14px"}}}},buildings:{data:{source:"tile",layer:'"MapBuildingECArea"',minzoom:15},extruded:{draw:{polygons:{interactive:!0,style:"buildings",extrude:"function () {\n return $zoom >= 17;\n}\n"}}},draw:{polygons:{color:"#DDB07B",order:700,height:{property:"height"}},lines:{color:"#DB933F",width:"2px",order:700,cap:"round",join:"round"}}}},styles:{buildings:{base:"polygons",shaders:{blocks:{color:"color.rgb;\n"}}}},lights:{light1:{type:"directional",direction:[.1,.5,-1],diffuse:.7,ambient:.5}},sources:{tile:{tile_size:256,type:"MVT",url:"https://dalganmap.ru/api/tiles/get_tile/{z}/{x}/{y}.mvt"},nature_tile:{tile_size:256,type:"MVT",url:"https://dalganmap.ru/api/tiles/get_nature_tile/{z}/{x}/{y}.mvt"}}};export{n as default};
|
|
1
|
+
var n={global:{pointAddress:{zoom:{min:15},font:{fill:"black",size:"12px"}},POI:{order:800,size:"20px",text_source:"poi_name",functions:{checkIsMail:"function(feature) {\n const { poi_name = '' } = feature;\n\n const isMail = poi_name.startsWith('Почта');\n\n return isMail;\n}\n"},font:{fill:"#464544",size:"12px"}},builtupAreas:{order:200},landuseAreas:{order:300},links:{getIsConstruction:"function (feature) {\n const { construction } = feature;\n\n return construction;\n}\n",getIsFunctionalClass:"function (feature) {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",getIsLowMobility:"function (feature) {\n const { functional_class, low_mobility } = feature;\n\n return functional_class === 5 && low_mobility === 1;\n}\n",order:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n switch (z_lvl) {\n case '2.0': {\n return 612;\n }\n\n case '1.5': {\n return 611;\n }\n\n case '1.0': {\n return 610;\n }\n\n case '0.7': {\n return 609;\n }\n\n case '0.5': {\n return 608;\n }\n\n case '0.3': {\n return 607;\n }\n\n case '0.0': {\n switch(functional_class) {\n case 1:\n case 2: {\n return 606;\n }\n\n case 3:\n case 4: {\n return 605;\n }\n\n case 5: { return 604; }\n }\n }\n\n case '-0.3': {\n return 603;\n }\n\n case '-0.5': {\n return 602;\n }\n\n case '-1.0': {\n return 601;\n }\n }\n}\n",filter:"function() {\n const { functional_class } = feature;\n\n switch (functional_class) {\n case 5: {\n const isZoom = $zoom >= 12;\n\n return isZoom;\n }\n\n default: {\n return true;\n }\n }\n}\n",color:"function() {\n const { functional_class, tunnel, tollway } = feature;\n\n const alpha = tunnel ? 0.89 : 1;\n\n const getRGB = (hex, alpha) => {\n const r = +(parseInt(hex.slice(1, 3), 16) / 255).toFixed(2);\n const g = +(parseInt(hex.slice(3, 5), 16) / 255).toFixed(2);\n const b = +(parseInt(hex.slice(5, 7), 16) / 255).toFixed(2);\n\n return [r, g, b, alpha];\n }\n\n if (tollway) {\n return '#D72740';\n }\n\n switch (functional_class) {\n case 1:\n case 2: {\n const color = getRGB('#D1747F', alpha);\n\n return color;\n }\n\n case 3:\n case 4: {\n const color = getRGB('#B1A7AA', alpha);\n\n return color;\n }\n\n case 5: {\n const color = getRGB('#D5CEC3', alpha);\n\n return color;\n }\n }\n}\n",width:"function() {\n const { functional_class, road_number } = feature;\n\n const getScale = () => {\n if ($zoom <= 15 && $zoom >= 14) { return 7; }\n\n if ($zoom <= 13 && $zoom >= 12) {\n return 9; \n }\n\n if ($zoom <= 5) { return 400; }\n\n if ($zoom <= 7) { return 200; }\n\n if ($zoom < 12) { return 50; }\n\n return 1;\n }\n\n const scale = getScale();\n\n switch(functional_class) {\n case 1:\n case 2: {\n return 8 * scale;\n }\n\n case 3:\n case 4: {\n return 7 * scale;\n }\n\n case 5: {\n if (Boolean(road_number)) {\n return 7 * scale;\n }\n\n return 6;\n }\n }\n}\n",outline:{color:"function() {\n const { functional_class, access_id, tollway } = feature;\n\n if (tollway) {\n return '#B9263B';\n }\n\n switch(functional_class) {\n case 5: {\n return '#989898';\n }\n\n case 3:\n case 4: {\n return '#8F6E78';\n }\n\n case 1:\n case 2: {\n return '#9A414B';\n }\n }\n}\n",width:"function() {\n const { functional_class, access_id } = feature;\n\n switch(functional_class) {\n case 5: {\n switch (access_id) {\n case 32: {\n return 0;\n }\n\n default: {\n return 1;\n }\n }\n }\n\n default: {\n return 1;\n }\n }\n}\n"}}},cameras:{camera1:{type:"perspective",vanishing_point:[0,-500]}},textures:{arrow:{url:"https://dalganmap.ru/api-image/images/arrow-20.png",sprites:{base:[0,0,20,20]}},"traffic-signal":{url:"https://dalganmap.ru/api-image/images/conditions/traffic-signal.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},pedestrian_crossing:{url:"https://dalganmap.ru/api-image/images/conditions/pedestrian_crossing.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},physical:{url:"https://dalganmap.ru/api-image/images/conditions/physical.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},gate:{url:"https://dalganmap.ru/api-image/images/conditions/gate.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_3578:{url:"https://dalganmap.ru/api-image/images/POI/3578.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5813:{url:"https://dalganmap.ru/api-image/images/POI/5813.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5541:{url:"https://dalganmap.ru/api-image/images/POI/5541.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5540:{url:"https://dalganmap.ru/api-image/images/POI/5540.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9530(Mail)":{url:"https://dalganmap.ru/api-image/images/POI/mail.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9530(Delivery)":{url:"https://dalganmap.ru/api-image/images/POI/delivery.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5400:{url:"https://dalganmap.ru/api-image/images/POI/5400.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_6000:{url:"https://dalganmap.ru/api-image/images/POI/6000.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9565:{url:"https://dalganmap.ru/api-image/images/POI/9565.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9583:{url:"https://dalganmap.ru/api-image/images/POI/9583.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_8060:{url:"https://dalganmap.ru/api-image/images/POI/8060.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5511:{url:"https://dalganmap.ru/api-image/images/POI/5511.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5512:{url:"https://dalganmap.ru/api-image/images/POI/5512.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5800:{url:"https://dalganmap.ru/api-image/images/POI/5800.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_5999:{url:"https://dalganmap.ru/api-image/images/POI/5999.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7011:{url:"https://dalganmap.ru/api-image/images/POI/7011.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7389:{url:"https://dalganmap.ru/api-image/images/POI/7389.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7832:{url:"https://dalganmap.ru/api-image/images/POI/7832.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7929:{url:"https://dalganmap.ru/api-image/images/POI/7929.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7990:{url:"https://dalganmap.ru/api-image/images/POI/7990.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_7999:{url:"https://dalganmap.ru/api-image/images/POI/7999.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_8410:{url:"https://dalganmap.ru/api-image/images/POI/8410.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9517:{url:"https://dalganmap.ru/api-image/images/POI/9517.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},POI_9718:{url:"https://dalganmap.ru/api-image/images/POI/9718.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(mosque)":{url:"https://dalganmap.ru/api-image/images/POI/9992_mosque.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(church)":{url:"https://dalganmap.ru/api-image/images/POI/9992_church.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(temple)":{url:"https://dalganmap.ru/api-image/images/POI/9992_temple.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(davidStar)":{url:"https://dalganmap.ru/api-image/images/POI/9992_davidStar.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_9992(mortar)":{url:"https://dalganmap.ru/api-image/images/POI/9992_mortar.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_4100(metro)":{url:"https://dalganmap.ru/api-image/images/POI/4100_metro.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}},"POI_4100(diameter)":{url:"https://dalganmap.ru/api-image/images/POI/4100_diameter.png",filtering:"mipmap",sprites:{base:[0,0,41,15]}},POI_4013:{url:"https://dalganmap.ru/api-image/images/POI/4013.png",filtering:"mipmap",sprites:{base:[0,0,20,20]}}},layers:{CityPOI:{data:{source:"tile",layer:'"CityPOI"'},filter:"function() {\n const { capital_order8, capital_order2, capital_order1, poi_name, priority } = feature;\n \n if ($zoom >= 9 && $zoom < 13) {\n return priority < 8;\n }\n\n if ($zoom <= 11) {\n return capital_order8 === 'Y';\n }\n\n if ($zoom >= 15) {\n return capital_order2 !== 'Y';\n }\n\n return true;\n}\n",draw:{text:{priority:"function () {\n const { priority } = feature;\n\n if ($zoom <= 15) {\n return priority;\n }\n\n return 1;\n}\n",text_source:"poi_name",font:{fill:"black",size:"function () {\n const { capital_order8 } = feature;\n\n if (capital_order8 === 'Y') {\n return '16px';\n }\n\n return '12px';\n}\n",weight:"function () {\n const { capital_order2 } = feature;\n\n if (capital_order2 === 'Y') {\n return 'bold';\n }\n\n return 'normal';\n}\n",stroke:{color:"white",width:"2px"}}}}},POI:{data:{source:"tile",layer:'"POI"'},draw:{points:{text:{text_source:"poi_name",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}},_3578:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 3578;\n}\n",draw:{points:{texture:"POI_3578",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_4013:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 4013;\n}\n",draw:{points:{texture:"POI_4013",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5813:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5813;\n}\n",draw:{points:{texture:"POI_5813",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5541:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5541;\n}\n",draw:{points:{texture:"POI_5541",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5540:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5540;\n}\n",draw:{points:{texture:"POI_5540",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9530-mail":{filter:"function() {\n const { cat_id, poi_name = '' } = feature;\n\n const isId = +cat_id === 9530;\n const isMail = global.POI.functions.checkIsMail(feature);\n\n return isId && isMail;\n}\n",draw:{points:{texture:"POI_9530(Mail)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9530-delivery":{filter:"function() {\n const { cat_id, poi_name = '' } = feature;\n \n const isId = +cat_id === 9530; const isMail = global.POI.functions.checkIsMail(feature);\n \n return isId && !isMail;\n}\n",draw:{points:{texture:"POI_9530(Delivery)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5400:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5400;\n}\n",draw:{points:{texture:"POI_5400",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_6000:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 6000;\n}\n",draw:{points:{texture:"POI_6000",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_9565:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9565;\n}\n",draw:{points:{texture:"POI_9565",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_9583:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9583;\n}\n",draw:{points:{texture:"POI_9583",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_8060:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 8060;\n}\n",draw:{points:{texture:"POI_8060",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5511:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5511;\n}\n",draw:{points:{texture:"POI_5511",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5512:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5512;\n}\n",draw:{points:{texture:"POI_5512",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5800:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5800;\n}\n",draw:{points:{texture:"POI_5800",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_5999:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 5999;\n}\n",draw:{points:{texture:"POI_5999",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_7011:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7011;\n}\n",draw:{points:{texture:"POI_7011",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_7389:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7389;\n}\n",draw:{points:{texture:"POI_7389",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_7832:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7832;\n}\n",draw:{points:{texture:"POI_7832",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_7929:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7929;\n}\n",draw:{points:{texture:"POI_7929",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_7990:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 7990;\n}\n",draw:{points:{texture:"POI_7990",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_8410:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 8410;\n}\n",draw:{points:{texture:"POI_8410",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_9517:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9517;\n}\n",draw:{points:{texture:"POI_9517",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},_9718:{filter:"function() {\n const { cat_id } = feature;\n\n return +cat_id === 9718;\n}\n",draw:{points:{texture:"POI_9718",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9992-mosque":{filter:"function() {\n const { cat_id, subcat_id } = feature;\n \n return +cat_id === 9992 && +subcat_id === 1;\n}\n",draw:{points:{texture:"POI_9992(mosque)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9992-church":{filter:"function() {\n const { cat_id, subcat_id } = feature;\n \n return +cat_id === 9992 && +subcat_id === 2;\n}\n",draw:{points:{texture:"POI_9992(church)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9992-temple":{filter:"function() {\n const { cat_id, subcat_id } = feature;\n \n return +cat_id === 9992 && +subcat_id === 3;\n}\n",draw:{points:{texture:"POI_9992(temple)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9992-davidStar":{filter:"function() {\n const { cat_id, subcat_id } = feature;\n \n return +cat_id === 9992 && +subcat_id === 4;\n}\n",draw:{points:{texture:"POI_9992(davidStar)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_9992-mortar":{filter:"function() {\n const { cat_id, subcat_id } = feature;\n \n return +cat_id === 9992 && +subcat_id === 6;\n}\n",draw:{points:{texture:"POI_9992(mortar)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"}}},"_4100-metro":{filter:"function() {\n const { cat_id, poi_name } = feature;\n \n const isMetro = poi_name.startsWith('Метро-');\n const isStation = poi_name.startsWith('Станция-');\n \n return +cat_id === 4100 && (isMetro || isStation);\n}\n",draw:{points:{texture:"POI_4100(metro)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"},text:{text_source:"function() {\n const { poi_name } = feature;\n\n const isMetro = poi_name.startsWith('Метро-');\n const isStation = poi_name.startsWith('Станция-');\n\n if (isMetro) {\n return poi_name.replace('Метро-', '');\n }\n\n if (isStation) {\n return poi_name.replace('Станция-', '');\n }\n}\n",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}},"_4100-diameter":{filter:"function() {\n const { cat_id, poi_name } = feature;\n \n const isDiameter = poi_name.startsWith('МЦД-');\n \n return +cat_id === 4100 && isDiameter;\n}\n",draw:{points:{texture:"POI_4100(diameter)",sprite:"base",size:"global.POI.size",placement:"midpoint",order:"global.POI.order"},text:{text_source:"function() {\n const { poi_name } = feature;\n \n return poi_name.replace('МЦД-', '');\n}\n",font:{fill:"global.POI.font.fill",size:"global.POI.font.size"}}}}},PointAddress:{data:{source:"tile",layer:'"PointAddress"',minzoom:"global.pointAddress.zoom.min"},draw:{text:{interactive:!0,text_source:"address",font:{fill:"global.pointAddress.font.fill",size:"global.pointAddress.font.size"}}}},Condition:{data:{source:"tile",layer:'"Conditions"'},"_traffic-signal":{filter:"function() {\n const { type } = feature;\n\n const isShow = type === 'traffic_signal' && $zoom >= 17;\n\n return isShow;\n}\n",draw:{points:{texture:"traffic-signal",sprite:"base",placement:"midpoint",order:900}}},"_pedestrian-crossing":{filter:"function() {\n const { type } = feature;\n \n const isShow = type === 'pedestrian_crossing';\n \n return isShow && $zoom >= 17;\n}\n",draw:{points:{texture:"pedestrian_crossing",sprite:"base",placement:"midpoint",order:900}}},_physical:{filter:"function() {\n const { type } = feature;\n \n const isShow = type === 'physical' && $zoom >= 17;\n \n return isShow;\n}\n",draw:{points:{texture:"physical",sprite:"base",placement:"midpoint",order:900}}},_gate:{filter:"function() {\n const { type } = feature;\n \n const isShow = type === 'gate' && $zoom >= 17;\n \n return isShow;\n}\n",draw:{points:{texture:"gate",sprite:"base",placement:"midpoint",order:900}}}},OneWay:{data:{source:"tile",layer:'"OneWay"'},filter:"function() { return $zoom >= 17; }",draw:{points:{texture:"arrow",sprite:"base",angle:"function () {\n const { bearing } = feature;\n\n return bearing;\n}\n",order:900}}},Link:{data:{source:"tile",layer:'"Link"'},"_road-number":{data:{source:"tile",layer:'"Link"'},draw:{text:{text_source:"road_number",font:{fill:"#181bff",size:"16px",weight:"bold",underline:!0,background:{color:"black"}}}}},"_z-lvl-2":{filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '2.0';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:624,width:"global.links.width\\"}}},"links_border(z_lvl=2)":{filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '2.0';\n}\n",draw:{lines:{color:"global.links.color",order:623,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}}},"links(z_lvl=1.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.5';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:622,width:"global.links.width"}}},"links_border(z_lvl=1.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.5';\n}\n",draw:{lines:{color:"global.links.color",order:621,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.0';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:620,width:"global.links.width"}}},"links_border(z_lvl=1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '1.0';\n}\n",draw:{lines:{color:"global.links.color",order:619,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0.7)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.7';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:618,width:"global.links.width"}}},"links_border(z_lvl=0.7)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.7';\n}\n",draw:{lines:{color:"global.links.color",order:617,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.5';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:616,width:"global.links.width"}}},"links_border(z_lvl=0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.5';\n}\n",draw:{lines:{color:"global.links.color",order:615,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.3';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:614,width:"global.links.width"}}},"links_border(z_lvl=0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.3';\n}\n",draw:{lines:{color:"global.links.color",order:613,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=0, FC-1/2)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 1 || functional_class === 2);\n}\n",draw:{text:{text_source:"street_name",priority:100,"text-ignore-placement":!0,font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:612,cap:"round",join:"round",width:"global.links.width"}},construction:{filter:"function() {\n return global.links.getIsConstruction(feature);\n}\n",draw:{lines:{dash:[3,1]}}},functionalClassAccessId32:{filter:"function() {\n return global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{width:2,color:"#9AA096",border:null,dash:[2,1]}}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links_border(z_lvl=0, FC-1/2)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 1 || functional_class === 2) && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{color:"global.links.color",order:609,cap:"round",join:"round",outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links(z_lvl=0, FC-3/4)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 3 || functional_class === 4);\n}\n",draw:{text:{text_source:"street_name",priority:100,font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:611,cap:"round",join:"round",width:"global.links.width"}},construction:{filter:"function() {\n return global.links.getIsConstruction(feature);\n}\n",draw:{lines:{dash:[3,1]}}},functionalClassAccessId32:{filter:"function() {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",draw:{lines:{width:2,color:"#9AA096",border:null,dash:[2,1]}}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links_border(z_lvl=0, FC-3/4)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && (functional_class === 3 || functional_class === 4) && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{color:"global.links.color",order:608,cap:"round",join:"round",outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links(z_lvl=0, FC-5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && functional_class === 5;\n}\n",draw:{text:{text_source:"street_name",priority:100,font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:610,cap:"round",join:"round",width:"global.links.width"}},construction:{filter:"function() {\n return global.links.getIsConstruction(feature);\n}\n",draw:{lines:{dash:[3,1]}}},functionalClassAccessId32:{filter:"function() {\n return global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{width:2,color:"#9AA096",border:null,dash:[2,1]}}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links_border(z_lvl=0, FC-5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { functional_class, z_lvl = '0.0' } = feature;\n\n return z_lvl === '0.0' && functional_class === 5 && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);\n}\n",draw:{lines:{color:"global.links.color",order:607,cap:"round",join:"round",outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}},lowMobility:{filter:"function() {\n return global.links.getIsLowMobility(feature);\n}\n",draw:{lines:{width:4}}}},"links(z_lvl=-0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.3';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{color:"global.links.color",order:606,width:"global.links.width"}}},"links_border(z_lvl=-0.3)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.3';\n}\n",draw:{lines:{color:"global.links.color",order:605,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=-0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.5';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{order:604,blend:"overlay",color:"global.links.color",width:"global.links.width"}}},"links_border(z_lvl=-0.5)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-0.5';\n}\n",draw:{lines:{color:"global.links.color",order:603,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},"links(z_lvl=-1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-1.0';\n}\n",draw:{text:{text_source:"street_name",font:{fill:"black",stroke:{color:"white",width:"3px"},size:"14px"}},lines:{blend:"overlay",color:"global.links.color",order:602,width:"global.links.width"}}},"links_border(z_lvl=-1)":{data:{source:"tile",layer:'"Link"'},filter:"function() {\n const { z_lvl = '0.0' } = feature;\n\n return z_lvl === '-1.0';\n}\n",draw:{lines:{color:"global.links.color",order:601,outline:{color:"global.links.outline.color",width:"global.links.outline.width"},width:"global.links.width"}}},AdminArea:{data:{source:"tile",layer:'"MapAdminArea"'},draw:{polygons:{color:"#D3D2CF",order:100}}},AdminAreaBorderRegion:{filter:"function() {\n const { type } = feature;\n\n return type === 'R';\n}\n",data:{source:"tile",layer:'"MapAdminArea"'},draw:{lines:{color:"#696969",width:"1px",order:450,cap:"round",join:"round"}}},AdminAreaBorderDistrict:{filter:"function() {\n const { type } = feature;\n\n return type === 'D' && $zoom >= 12;\n}\n",data:{source:"tile",layer:'"MapAdminArea"'},draw:{lines:{color:"#696969",dash:[4,7],width:"1px",order:451,cap:"round",join:"round"}}},BuiltupArea:{data:{source:"tile",layer:'"MapAdminBuiltupArea"'},draw:{polygons:{color:"#CFC8C8",order:"global.builtupAreas.order"}}},FacilityArea:{data:{source:"tile",layer:'"MapFacilityArea"'},draw:{polygons:{color:"function() {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '2000408': {\n return '#DBBAC4';\n }\n\n case '1900403': {\n return '#B6C3C7';\n }\n\n case '1907403': {\n return '#A3B9C0';\n }\n\n case '2000123': {\n return '#E4BA7D';\n }\n\n case '2000124': {\n return '#BFE6E3';\n }\n\n case '2000200': {\n return '#A0A9A8';\n }\n\n case '2000403': {\n return '#AF7136';\n }\n\n case '2000420': {\n return '#89AC76';\n }\n\n case '2000457': {\n return '#9494C0';\n }\n\n default: {\n return '#E1D4D4';\n }\n }\n}\n",order:"function () {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '1907403': {\n return 301;\n }\n\n default: {\n return 300;\n }\n }\n}\n"},lines:{color:"#857F7F",width:"2px",order:300,cap:"round",join:"round"}}},FacilityAreaLabel:{filter:"function() {\n return $zoom >= 15;\n}\n",data:{source:"tile",layer:'"MapFacilityAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"function() {\n const { feature_type } = feature;\n\n switch(feature_type) {\n case '1900403':\n case '1907403': {\n return '#256D7B';\n }\n\n case '2000420':\n case '2000460':\n case '2000123': {\n return '#00541F';\n }\n\n case '2000408': {\n return '#5E2129';\n }\n\n case '2000124': {\n return '#3E5F8A';\n }\n\n case '2000200': {\n return '#464451';\n }\n\n case '2000403': {\n return '#B03F35';\n }\n\n case '2000457': {\n return '#6A5ACD';\n }\n\n case '1700215':\n case '900159':\n case '900158': {\n return '#474A51';\n }\n\n default: {\n return black;\n }\n }\n}\n",stroke:{color:"white",width:"3px"},size:"12px"}}}},"LanduseArea(tile)":{data:{source:"tile",layer:'"MapLanduseArea"'},draw:{polygons:{interactive:!0,color:"function() {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '509998': {\n return '#ECD175';\n }\n\n case '600102':\n case '900140': {\n return '#3E9A8C';\n }\n\n case '900202':\n case '900130': \n case '900150':\n case '900103': {\n return '#96BE7D';\n }\n\n case '9997010': {\n return null;\n }\n }\n}\n",order:"function () {\n const { feature_type } = feature;\n\n switch(feature_type) {\n case '900150':\n case '900130':\n case '509998': {\n return global.landuseAreas.order;\n }\n\n default: {\n return global.builtupAreas.order - 1;\n }\n }\n}\n"}}},"LanduseArea(nature_tile)":{data:{source:"nature_tile",layer:'"MapNatureForest"'},draw:{polygons:{interactive:!0,color:"function() {\n const { feature_type } = feature;\n\n switch (feature_type) {\n case '900202': {\n return '#96BE7D';\n }\n\n default : {\n return null;\n }\n }\n}\n",order:"function () {\n return global.builtupAreas.order - 2;\n}\n"}}},LanduseAreaLabel:{filter:"function() {\n return $zoom >= 15;\n}\n",data:{source:"tile",layer:'"MapLanduseAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"function() {\n const { feature_type } = feature;\n\n switch(feature_type) {\n case '509998': {\n return '#CD7F32';\n }\n\n default: {\n return '#00541F';\n }\n }\n}\n",stroke:{color:"white",width:"3px"},size:"13px"}}}},"NatureField(nature_tile)":{data:{source:"nature_tile",layer:'"MapNatureField"'},draw:{polygons:{interactive:!0,color:"function() {\n return '#EBEEC7';\n}\n",order:"function () {\n return global.builtupAreas.order - 1;\n}\n"}}},Railroad:{data:{source:"tile",layer:'"MapRailroadLink"'},draw:{lines:{dash:[2,1],width:5,color:"#5C5F5F",order:501,cap:"round",join:"round"}}},RailroadBack:{data:{source:"tile",layer:'"MapRailroadLink"'},draw:{lines:{width:6,color:"#A3A8A",order:500,cap:"round",join:"round"}}},WaterArea:{data:{source:"tile",layer:'"MapWaterArea"'},draw:{polygons:{color:"#7DBEE4",order:350},lines:{color:"#7DBEE4",order:350,width:20,cap:"round",join:"round"}}},OceanArea:{data:{source:"tile",layer:'"MapOceanArea"'},draw:{polygons:{color:"#7DBEE4",order:350}}},WaterAreaLabel:{filter:"function() {\n const { display_class } = feature;\n\n if ($zoom >= 14) {\n return true;\n } else {\n return display_class <= 4;\n }\n}\n",data:{source:"tile",layer:'"MapWaterAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"14px"}}}},WaterLakeLabel:{filter:"function() {\n const { display_class } = feature;\n\n if ($zoom >= 14) {\n return true;\n } else {\n return display_class <= 4;\n }\n}\n",data:{source:"tile",layer:'"MapWaterLakeLabel"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"14px"}}}},OceanAreaLabel:{data:{source:"tile",layer:'"MapOceanAreaLabel"'},draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"18px"}}}},WaterLink:{data:{source:"tile",layer:'"MapWaterLink"'},_geometry:{draw:{lines:{color:"#7DBEE4",width:5,order:400,cap:"round",join:"round"}}},_text:{filter:"function() { return $zoom >= 10; }",draw:{text:{text_source:"name",font:{fill:"#0A80C4",stroke:{color:"white",width:"3px"},size:"14px"}}}}},Building:{data:{source:"tile",layer:'"MapBuildingECArea"',minzoom:15},extruded:{draw:{polygons:{interactive:!0,style:"buildings",extrude:"function () {\n return $zoom >= 17;\n}\n"}}},draw:{polygons:{color:"#DDB07B",order:700,height:{property:"height"}},lines:{color:"#DB933F",width:"2px",order:700,cap:"round",join:"round"}}}},styles:{buildings:{base:"polygons",shaders:{blocks:{color:"color.rgb;\n"}}}},lights:{light1:{type:"directional",direction:[.1,.5,-1],diffuse:.7,ambient:.5}},sources:{tile:{tile_size:256,type:"MVT",url:"https://dalganmap.ru/api/tiles/get_tile/{z}/{x}/{y}.mvt"},nature_tile:{tile_size:256,type:"MVT",url:"https://dalganmap.ru/api/tiles/get_nature_tile/{z}/{x}/{y}.mvt"}}};export{n as default};
|
|
2
2
|
//# sourceMappingURL=scene.yaml.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dartcom/ui-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Кастомная библиотека комопнентов Dartcom",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/jeni2d/tiles_library#readme",
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"react": "^19.2.
|
|
44
|
-
"react-dom": "^19.2.
|
|
43
|
+
"react": "^19.2.0",
|
|
44
|
+
"react-dom": "^19.2.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@eslint/compat": "^1.4.1",
|