@dartcom/ui-kit 3.5.3 → 3.6.1
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/layers/leaflet/constants.d.ts +11 -0
- package/dist/components/layers/leaflet/constants.d.ts.map +1 -0
- package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts +22 -1
- package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts.map +1 -1
- package/dist/components/layers/leaflet/index.d.ts +2 -0
- package/dist/components/layers/leaflet/index.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/POI/constants.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/POI/constants.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/POI/index.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/POI/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/POI/utils.d.ts +7 -0
- package/dist/components/layers/leaflet/layers/POI/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/admin-area/constants.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/admin-area/constants.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/admin-area/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/admin-area/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/admin-area/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/admin-area/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/building/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/building/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/building/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/building/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/builtup-area/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/builtup-area/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/builtup-area/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/builtup-area/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/city-POI/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/city-POI/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/city-POI/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/city-POI/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/condition/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/condition/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/condition/types.d.ts +7 -0
- package/dist/components/layers/leaflet/layers/condition/types.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/condition/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/condition/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/facility-area/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/facility-area/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/facility-area/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/facility-area/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/index.d.ts +17 -0
- package/dist/components/layers/leaflet/layers/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/landuse-area/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/landuse-area/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/landuse-area/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/landuse-area/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/link/constants.d.ts +8 -0
- package/dist/components/layers/leaflet/layers/link/constants.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/link/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/link/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/link/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/link/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/nature-field/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/nature-field/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/nature-field/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/nature-field/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/ocean-area/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/ocean-area/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/ocean-area/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/ocean-area/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/one-way/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/one-way/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/one-way/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/one-way/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/point-address/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/point-address/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/point-address/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/point-address/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/railroad/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/railroad/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/railroad/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/railroad/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/water-area/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/water-area/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/water-area/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/water-area/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/water-link/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/water-link/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/water-link/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/water-link/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/types.d.ts +109 -4
- package/dist/components/layers/leaflet/types.d.ts.map +1 -1
- package/dist/components/layers/leaflet/utils.d.ts +7 -0
- package/dist/components/layers/leaflet/utils.d.ts.map +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/url.d.ts +2 -0
- package/dist/constants/url.d.ts.map +1 -0
- package/dist/index.cjs +1897 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/services/api/api.service.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TangramCustomLayer, TangramSourceNames } from './types';
|
|
2
|
+
export declare const tile_size = 256;
|
|
3
|
+
export declare const sourceUrl: {
|
|
4
|
+
[K in TangramSourceNames]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getRoadPolyLayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
7
|
+
export declare const getLaneMarkingPolyLayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
8
|
+
export declare const getLaneMarkingLineLayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
9
|
+
export declare const getLaneMarkingPointLayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
10
|
+
export declare const getParkingLineLayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
11
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,SAAS,EAAE;KACrB,CAAC,IAAI,kBAAkB,GAAG,MAAM;CAMlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA2F3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBAiClE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBA8HlE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,QAAQ,kBAAkB,yBA+BnE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAwB9D,CAAC"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { Nullable } from '@/types';
|
|
2
|
-
import { TangramEventConfig, TangramLeafletLayer, TangramScene } from '../types';
|
|
2
|
+
import { TangramCustomLayer, TangramEventConfig, TangramLeafletLayer, TangramScene, TangramSourceConfig } from '../types';
|
|
3
3
|
export declare const useGetLeafletLayer: () => {
|
|
4
4
|
layer: Nullable<TangramLeafletLayer>;
|
|
5
5
|
scene: Nullable<TangramScene>;
|
|
6
6
|
config: Nullable<TangramEventConfig>;
|
|
7
|
+
addSource: (sourceConfig: TangramSourceConfig) => string[] | undefined;
|
|
8
|
+
getSource: (sourceName: TangramSourceConfig["name"]) => {
|
|
9
|
+
tile_size: number;
|
|
10
|
+
type: string;
|
|
11
|
+
url: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
updateSource: (sourceName: TangramSourceConfig["name"], newUrl: TangramSourceConfig["url"]) => string[] | undefined;
|
|
14
|
+
addLayer: (layer: TangramCustomLayer) => string[] | undefined;
|
|
15
|
+
removeLayer: (layer: TangramCustomLayer) => string[] | undefined;
|
|
16
|
+
addStyle: ({ name, style }: {
|
|
17
|
+
name: string;
|
|
18
|
+
style: object;
|
|
19
|
+
}) => void;
|
|
20
|
+
getLayerVisibility: (layer: TangramCustomLayer) => boolean | undefined;
|
|
21
|
+
toggleLayerVisibility: ({ layer, visible }: {
|
|
22
|
+
layer: TangramCustomLayer;
|
|
23
|
+
visible: boolean;
|
|
24
|
+
}) => boolean | undefined;
|
|
25
|
+
getSources: () => string[];
|
|
26
|
+
getLayers: () => string[];
|
|
27
|
+
removeLayers: () => never[] | undefined;
|
|
7
28
|
};
|
|
8
29
|
//# 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;
|
|
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;AAGnC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EAEpB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,kBAAkB;;;;8BA0BZ,mBAAmB;4BAwBrB,mBAAmB,CAAC,MAAM,CAAC;;;;;+BAa1B,mBAAmB,CAAC,MAAM,CAAC,UAC/B,mBAAmB,CAAC,KAAK,CAAC;sBAwB5B,kBAAkB;yBA+ClB,kBAAkB;gCA2BR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;gCAqBzC,kBAAkB;gDAgBL;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;;;;CA4MvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const text_source = "function() {\n const { poi_name, cat_id } = feature;\n\n switch (+cat_id) {\n case 4100: {\n const text = poi_name.replaceAll(/(\u041C\u0435\u0442\u0440\u043E-|\u0421\u0442\u0430\u043D\u0446\u0438\u044F-|\u041C\u0426\u0414-)/g, \"\");\n\n return text;\n }\n\n default: {\n return poi_name;\n }\n }\n}";
|
|
2
|
+
export declare const catIds: number[];
|
|
3
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/POI/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,+UActB,CAAC;AAEH,eAAO,MAAM,MAAM,UAGlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/POI/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LayerProps, TangramCustomLayer, TangramPointLayer, TangramSourceNames } from '@/components/layers/leaflet';
|
|
2
|
+
export declare const getDefaultPOI: (cat_id: number) => {
|
|
3
|
+
[x: string]: LayerProps;
|
|
4
|
+
};
|
|
5
|
+
export declare const getPOITypeLayer: (texture: string) => TangramPointLayer;
|
|
6
|
+
export declare const getPOILayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/POI/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM;;CAsI3C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,sBAS9C,CAAC;AAUF,eAAO,MAAM,YAAY,GAAI,QAAQ,kBAAkB,yBA8BtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/admin-area/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/admin-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/admin-area/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBAwE5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/building/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/building/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA+C3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/builtup-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/builtup-area/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAuB9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/city-POI/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/city-POI/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,gBAAgB,GAAI,QAAQ,kBAAkB,yBAyE1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/condition/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBAmC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/facility-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/facility-area/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,qBAAqB,GAAI,QAAQ,kBAAkB,yBA6J/D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './builtup-area';
|
|
2
|
+
export * from './point-address';
|
|
3
|
+
export * from './POI';
|
|
4
|
+
export * from './city-POI';
|
|
5
|
+
export * from './one-way';
|
|
6
|
+
export * from './condition';
|
|
7
|
+
export * from './railroad';
|
|
8
|
+
export * from './water-area';
|
|
9
|
+
export * from './water-link';
|
|
10
|
+
export * from './ocean-area';
|
|
11
|
+
export * from './landuse-area';
|
|
12
|
+
export * from './building';
|
|
13
|
+
export * from './facility-area';
|
|
14
|
+
export * from './admin-area';
|
|
15
|
+
export * from './nature-field';
|
|
16
|
+
export * from './link';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/leaflet/layers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/landuse-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/landuse-area/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAyI9D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const linkLayerName = "\"Link\"";
|
|
2
|
+
export declare const zLvlOrders: string[];
|
|
3
|
+
export declare const functionInterval: number[][];
|
|
4
|
+
export declare const colorFunction = "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}";
|
|
5
|
+
export declare const widthFunction = "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) { return 9; }\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}";
|
|
6
|
+
export declare const outlineColorFunction = "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}";
|
|
7
|
+
export declare const outlineWidthFunction = "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}";
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/link/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,aAAW,CAAC;AAEtC,eAAO,MAAM,UAAU,UAWtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAwB,CAAC;AAEtD,eAAO,MAAM,aAAa,6wBAsCxB,CAAC;AAEH,eAAO,MAAM,aAAa,0oBAsCxB,CAAC;AAEH,eAAO,MAAM,oBAAoB,iVAsB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,4TAoB/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/link/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/link/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAElB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAYrC,eAAO,MAAM,aAAa,GAAI,QAAQ,kBAAkB,yBA+MvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/nature-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/nature-field/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAkB9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/ocean-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/ocean-area/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBAuC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/one-way/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/one-way/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,eAAe,GAAI,QAAQ,kBAAkB,yBAwBzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/point-address/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/point-address/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,qBAAqB,GAAI,QAAQ,kBAAkB,yBAuB/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/railroad/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/railroad/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA+C3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/water-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/water-area/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBAyF5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/water-link/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/water-link/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,yBA+C5D,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StringOrNumber } from '@/types';
|
|
1
2
|
export type TangramLeafletLayerEvent = {
|
|
2
3
|
leaflet_event: {
|
|
3
4
|
latlng: L.LatLng;
|
|
@@ -13,18 +14,115 @@ export type TangramLeafletLayerEvent = {
|
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
|
-
export type
|
|
17
|
-
|
|
17
|
+
export type LayerText = {
|
|
18
|
+
order?: number;
|
|
19
|
+
interactive?: boolean;
|
|
20
|
+
text_source: string;
|
|
21
|
+
priority?: string;
|
|
22
|
+
font?: {
|
|
23
|
+
fill?: string;
|
|
24
|
+
size?: StringOrNumber;
|
|
25
|
+
weight?: StringOrNumber;
|
|
26
|
+
underline?: boolean;
|
|
27
|
+
stroke?: {
|
|
28
|
+
color?: string;
|
|
29
|
+
width?: StringOrNumber;
|
|
30
|
+
};
|
|
31
|
+
background?: {
|
|
32
|
+
color?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type TangramPointLayer = {
|
|
37
|
+
texture?: string;
|
|
38
|
+
sprite?: 'base';
|
|
39
|
+
placement?: 'midpoint';
|
|
40
|
+
angle?: string;
|
|
41
|
+
size?: StringOrNumber | [number, number];
|
|
42
|
+
order?: number;
|
|
43
|
+
text?: LayerText;
|
|
44
|
+
};
|
|
45
|
+
export type TangramLayerDraw = {
|
|
46
|
+
polygons?: {
|
|
47
|
+
color?: string;
|
|
48
|
+
order?: StringOrNumber;
|
|
49
|
+
height?: {
|
|
50
|
+
property: 'height';
|
|
51
|
+
};
|
|
52
|
+
interactive?: boolean;
|
|
53
|
+
};
|
|
54
|
+
lines?: {
|
|
55
|
+
dash?: number[];
|
|
56
|
+
color?: string;
|
|
57
|
+
width?: StringOrNumber;
|
|
58
|
+
cap?: 'round';
|
|
59
|
+
join?: 'round';
|
|
60
|
+
order?: number;
|
|
61
|
+
interactive?: boolean;
|
|
62
|
+
outline?: {
|
|
63
|
+
color?: string;
|
|
64
|
+
width?: StringOrNumber;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
points?: TangramPointLayer;
|
|
68
|
+
text?: LayerText;
|
|
69
|
+
styles?: {
|
|
70
|
+
[K in string]: {
|
|
71
|
+
color?: string;
|
|
72
|
+
order?: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type LayerProps = {
|
|
77
|
+
visible?: boolean;
|
|
78
|
+
filter?: string;
|
|
79
|
+
extruded?: {
|
|
80
|
+
draw?: {
|
|
81
|
+
polygons?: {
|
|
82
|
+
interactive?: boolean;
|
|
83
|
+
style?: string;
|
|
84
|
+
extrude?: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
draw?: TangramLayerDraw;
|
|
89
|
+
};
|
|
90
|
+
export type LayerData = {
|
|
91
|
+
source: string;
|
|
92
|
+
layer: string;
|
|
93
|
+
minzoom?: number;
|
|
94
|
+
};
|
|
95
|
+
export type TangramCustomLayer = LayerProps & {
|
|
96
|
+
readonly id: string;
|
|
97
|
+
data: LayerData;
|
|
98
|
+
sublayers?: {
|
|
99
|
+
[K in string]?: LayerProps;
|
|
100
|
+
};
|
|
18
101
|
};
|
|
19
|
-
export type TangramEventConfigLayerNames = 'Building' | 'CityPOI' | 'POI' | 'PointAddress' | 'Condition' | 'Link' | 'WaterLink';
|
|
20
102
|
export type TangramEventConfig = {
|
|
21
103
|
layers: {
|
|
22
|
-
[K in
|
|
104
|
+
[K in string]: TangramCustomLayer;
|
|
105
|
+
};
|
|
106
|
+
sources: {
|
|
107
|
+
[K in string]: {
|
|
108
|
+
tile_size: number;
|
|
109
|
+
type: string;
|
|
110
|
+
url: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
styles: {
|
|
114
|
+
[K in string]: object;
|
|
23
115
|
};
|
|
24
116
|
};
|
|
25
117
|
export type TangramEvent = {
|
|
26
118
|
config: TangramEventConfig;
|
|
27
119
|
};
|
|
120
|
+
export interface TangramSourceConfig {
|
|
121
|
+
name: TangramSourceNames;
|
|
122
|
+
tile_size: number;
|
|
123
|
+
type: 'MVT' | 'GeoJSON' | 'TopoJSON' | 'Raster';
|
|
124
|
+
url: string;
|
|
125
|
+
}
|
|
28
126
|
export type TangramScene = {
|
|
29
127
|
updateConfig: (props?: {
|
|
30
128
|
rebuild: boolean;
|
|
@@ -32,6 +130,7 @@ export type TangramScene = {
|
|
|
32
130
|
subscribe: (props: {
|
|
33
131
|
load: (event: TangramEvent) => void;
|
|
34
132
|
}) => void;
|
|
133
|
+
setDataSource: (name: string, source: TangramSourceConfig) => Promise<void>;
|
|
35
134
|
};
|
|
36
135
|
export type TangramLeafletLayer = L.Layer & {
|
|
37
136
|
setSelectionEvents: (props: {
|
|
@@ -40,4 +139,10 @@ export type TangramLeafletLayer = L.Layer & {
|
|
|
40
139
|
}) => void;
|
|
41
140
|
scene: TangramScene;
|
|
42
141
|
};
|
|
142
|
+
export declare enum TangramSourceNames {
|
|
143
|
+
TILE = "tile",
|
|
144
|
+
NATURE_TILE = "nature_tile",
|
|
145
|
+
MSK = "msk"
|
|
146
|
+
}
|
|
147
|
+
export type GetLayersFunction = (source: TangramSourceNames) => TangramCustomLayer[];
|
|
43
148
|
//# 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,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,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE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AE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E,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;AAEF,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;CACZ;AAED,MAAM,MAAM,iBAAiB,GAAG,CAC9B,MAAM,EAAE,kBAAkB,KACvB,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TangramCustomLayer } from './types';
|
|
2
|
+
export declare const getLayerName: ({ id, data: { source, layer }, }: TangramCustomLayer) => string;
|
|
3
|
+
export declare const setLayerOrder: ({ layer, order, }: {
|
|
4
|
+
layer: TangramCustomLayer;
|
|
5
|
+
order: number;
|
|
6
|
+
}) => TangramCustomLayer;
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,YAAY,GAAI,kCAG1B,kBAAkB,WAIpB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mBAG3B;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,uBA0FA,CAAC"}
|