@opengis/gis 0.1.81 → 0.2.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.
Files changed (39) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +5752 -6487
  3. package/dist/index.umd.cjs +39 -55
  4. package/module/gis/table/gis.group_list.table.json +36 -0
  5. package/module/test/cls/ts.temp_structure.ts_class.json +50 -0
  6. package/module/test/layer/bp.json +60 -0
  7. package/module/test/map/address/addr.yml +6 -0
  8. package/module/test/map/address/index.yml +22 -0
  9. package/module/test/map/address/street.yml +16 -0
  10. package/module/test/map/address2/addr.json +9 -0
  11. package/module/test/map/address2/index.json +35 -0
  12. package/module/test/map/address2/street.json +19 -0
  13. package/module/test/map/address3.yml +52 -0
  14. package/module/test/map/address4.json +34 -0
  15. package/module/test/map/bp_myo.json +37 -0
  16. package/module/test/map/main.json +44 -0
  17. package/module/test/map/mbd.json +91 -0
  18. package/module/test/map/ts.json +20 -129
  19. package/module/test/table/data_address.street.table.json +70 -0
  20. package/package.json +13 -11
  21. package/server/migrations/services.sql +3 -0
  22. package/server/migrations/widgets.sql +21 -0
  23. package/server/plugins/mapnik/funcs/map.proto +241 -241
  24. package/server/routes/gis/index.mjs +2 -0
  25. package/server/routes/gis/registers/funcs/classifiers.js +18 -3
  26. package/server/routes/gis/registers/funcs/handleRegistryRequest.js +4 -2
  27. package/server/routes/gis/services/add.service.js +51 -16
  28. package/server/routes/gis/services/get.services.js +28 -5
  29. package/server/routes/gis/services/legend.auto.js +78 -0
  30. package/server/routes/map/controllers/mapFormat.js +19 -10
  31. package/server/routes/map/controllers/marker_icon.js +2 -1
  32. package/server/routes/map/index.mjs +36 -15
  33. package/server/routes/map/maps/add.map.js +42 -0
  34. package/server/routes/map/maps/del.map.js +19 -0
  35. package/server/routes/map/maps/get.map.js +65 -0
  36. package/server/routes/map/vtile1.js +13 -4
  37. package/server/routes/map/widgets/add.widget.js +39 -0
  38. package/server/routes/map/widgets/del.widget.js +23 -0
  39. package/server/routes/map/widgets/get.widget.js +41 -0
@@ -0,0 +1,36 @@
1
+ {
2
+ "key": "group_id",
3
+ "model": "gis.group_list",
4
+ "table": "gis.group_list",
5
+ "orderby": "cdate desc",
6
+ "meta": {
7
+ "title": "group_name",
8
+ "search": "group_name"
9
+ },
10
+ "card": false,
11
+ "actions": [
12
+ "edit",
13
+ "del",
14
+ "add"
15
+ ],
16
+ "setting": [
17
+ "card",
18
+ "export",
19
+ "add"
20
+ ],
21
+ "form": "gis.group_list.form",
22
+ "columns": [
23
+ {
24
+ "ua": "Назва",
25
+ "name": "group_name",
26
+ "width": 200,
27
+ "format": "text"
28
+ },
29
+ {
30
+ "ua": "Тип сервісу",
31
+ "name": "enabled",
32
+ "format": "boolean",
33
+ "edit": true
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "id": "1",
4
+ "text": "Павільйон"
5
+ },
6
+ {
7
+ "id": "2",
8
+ "text": "Кіоск"
9
+ },
10
+ {
11
+ "id": "3",
12
+ "text": "Відкритий майданчик для харчування"
13
+ },
14
+ {
15
+ "id": "4",
16
+ "text": "Лоток"
17
+ },
18
+ {
19
+ "id": "5",
20
+ "text": "Палатка"
21
+ },
22
+ {
23
+ "id": "6",
24
+ "text": "Лавка-автопричіп"
25
+ },
26
+ {
27
+ "id": "7",
28
+ "text": "Торговий ряд"
29
+ },
30
+ {
31
+ "id": "8",
32
+ "text": "Альтанка"
33
+ },
34
+ {
35
+ "id": "9",
36
+ "text": "Гараж"
37
+ },
38
+ {
39
+ "id": "10",
40
+ "text": "Автокав’ярня"
41
+ },
42
+ {
43
+ "id": "11",
44
+ "text": "Типова ТС"
45
+ },
46
+ {
47
+ "id": "12",
48
+ "text": "Пересувний засіб дрібнороздільної торговельної мережі"
49
+ }
50
+ ]
@@ -0,0 +1,60 @@
1
+ {
2
+ "service": "vtile",
3
+ "source_path": "data_bp_myo.bp",
4
+ "name": "Будівельні паспорти Template",
5
+ "visible": true,
6
+ "popup": [
7
+ {
8
+ "ua": "Назва замовника",
9
+ "name": "bp_customer_name",
10
+ "meta": "title"
11
+ },
12
+ {
13
+ "label": "Реєстраційний номер БП",
14
+ "name": "bp_code",
15
+ "format":"badge"
16
+ },
17
+ {
18
+ "label": "Адреса",
19
+ "name": "address"
20
+ }
21
+ ],
22
+ "card": [
23
+ {
24
+ "label": "Реєстраційний номер БП",
25
+ "name": "bp_code",
26
+ "format": "text"
27
+ },
28
+ {
29
+ "ua": "Адреса",
30
+ "name": "address",
31
+ "format": "text"
32
+ },
33
+ {
34
+ "ua": "Вид будівництва",
35
+ "data": "bp_build_type",
36
+ "name": "bp_build_type",
37
+ "format": "badge",
38
+ "view_type": "features"
39
+ },
40
+ {
41
+ "ua": "Назва замовника",
42
+ "name": "bp_customer_name",
43
+ "format": "text"
44
+ },
45
+ {
46
+ "ua": "Статус документа",
47
+ "data": "doc_status",
48
+ "name": "bp_doc_status",
49
+ "format": "badge"
50
+ }
51
+ ],
52
+ "style": {
53
+ "type": "point",
54
+ "color": "blue",
55
+ "width": 2,
56
+ "radius":10,
57
+ "border": 1,
58
+ "opacity": 0.4
59
+ }
60
+ }
@@ -0,0 +1,6 @@
1
+ label: Адреси
2
+ source_path: data_address.address
3
+ style:
4
+ color: "#555"
5
+ weight: 1.5
6
+ visible: false
@@ -0,0 +1,22 @@
1
+ ---
2
+ id: address
3
+ name: address
4
+ title: Адресний реєстр
5
+ description: Адресний реєстр
6
+ center:
7
+ - 30.5234
8
+ - 50.4501
9
+ zoom: 12
10
+ basemap: osm
11
+ sources: []
12
+ widgets:
13
+ - type: legend
14
+ position: bottom-right
15
+ config:
16
+ items:
17
+ - label: Житлова зона
18
+ color: "#4caf50"
19
+ - label: Комерційна зона
20
+ color: "#2196f3"
21
+ - label: Промислова зона
22
+ color: "#f44336"
@@ -0,0 +1,16 @@
1
+ label: Вулиці
2
+ source_path: data_address.street.table
3
+ style:
4
+ attribute: type
5
+ colors:
6
+ "1": "#4caf50"
7
+ "2": "#2196f3"
8
+ "3": "#f44336"
9
+ "4": "#4caf50"
10
+ "5": "#2196f3"
11
+ "6": "#f44336"
12
+ "8": "#4caf50"
13
+ "9": "#2196f3"
14
+ "11": "#f44336"
15
+ "16": "#4caf50"
16
+ visible: true
@@ -0,0 +1,9 @@
1
+ {
2
+ "label": "Адреси",
3
+ "source_path": "data_address.address",
4
+ "style": {
5
+ "color": "#555",
6
+ "weight": 1.5
7
+ },
8
+ "visible": false
9
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "id": "address3",
3
+ "name": "address",
4
+ "title": "Адресний реєстр",
5
+ "description": "Адресний реєстр",
6
+ "center": [
7
+ 30.5234,
8
+ 50.4501
9
+ ],
10
+ "zoom": 12,
11
+ "basemap": "osm",
12
+ "sources": [],
13
+ "widgets": [
14
+ {
15
+ "type": "legend",
16
+ "position": "bottom-right",
17
+ "config": {
18
+ "items": [
19
+ {
20
+ "label": "Житлова зона",
21
+ "color": "#4caf50"
22
+ },
23
+ {
24
+ "label": "Комерційна зона",
25
+ "color": "#2196f3"
26
+ },
27
+ {
28
+ "label": "Промислова зона",
29
+ "color": "#f44336"
30
+ }
31
+ ]
32
+ }
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "label": "Вулиці",
3
+ "source_path": "data_address.street.table",
4
+ "style": {
5
+ "attribute": "type",
6
+ "colors": {
7
+ "1": "#4caf50",
8
+ "2": "#2196f3",
9
+ "3": "#f44336",
10
+ "4": "#4caf50",
11
+ "5": "#2196f3",
12
+ "6": "#f44336",
13
+ "8": "#4caf50",
14
+ "9": "#2196f3",
15
+ "11": "#f44336",
16
+ "16": "#4caf50"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,52 @@
1
+ ---
2
+ id: address1
3
+ name: address1
4
+ title: Адресний реєстр
5
+ description: Адресний реєстр.
6
+ center:
7
+ - 30.5234
8
+ - 50.4501
9
+ zoom: 12
10
+ basemap: osm
11
+ sources: []
12
+ layers:
13
+ - id: address3
14
+ label: Адреси
15
+ source_path: data_address.address
16
+ style:
17
+ attribute: type
18
+ colors:
19
+ build: "Будівля / Споруда"
20
+ countrySeat: "Садибний / Садовий / Дачний будинок"
21
+ landPlot: "Земельна ділянка"
22
+ complex: "Комплекс будівель і споруд"
23
+ undergroundObject: "Підземний об’єкт"
24
+ visible: true
25
+ - id: street3
26
+ label: Вулиці
27
+ source_path: data_address.street.table
28
+ style:
29
+ attribute: type
30
+ colors:
31
+ "1": "#4caf50"
32
+ "2": "#2196f3"
33
+ "3": "#f44336"
34
+ "4": "#4caf50"
35
+ "5": "#2196f3"
36
+ "6": "#f44336"
37
+ "8": "#4caf50"
38
+ "9": "#2196f3"
39
+ "11": "#f44336"
40
+ "16": "#4caf50"
41
+ visible: true
42
+ widgets:
43
+ - type: legend
44
+ position: bottom-right
45
+ config:
46
+ items:
47
+ - label: Житлова зона
48
+ color: "#4caf50"
49
+ - label: Комерційна зона
50
+ color: "#2196f3"
51
+ - label: Промислова зона
52
+ color: "#f44336"
@@ -0,0 +1,34 @@
1
+ {
2
+ "id": "address2",
3
+ "name": "address",
4
+ "title": "Адресний реєстр",
5
+ "description": "Адресний реєстр.",
6
+ "center": [
7
+ 30.5234,
8
+ 50.4501
9
+ ],
10
+ "zoom": 12,
11
+ "layers": [],
12
+ "widgets": [
13
+ {
14
+ "type": "legend",
15
+ "position": "bottom-right",
16
+ "config": {
17
+ "items": [
18
+ {
19
+ "label": "Житлова зона",
20
+ "color": "#4caf50"
21
+ },
22
+ {
23
+ "label": "Комерційна зона",
24
+ "color": "#2196f3"
25
+ },
26
+ {
27
+ "label": "Промислова зона",
28
+ "color": "#f44336"
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "history": true,
3
+ "name": "Буд. паспорти та Містобудівні умови й обмеження",
4
+ "height": "calc(100vh - 65px)",
5
+ "center": [
6
+ 34.65450,
7
+ 48.51174
8
+ ],
9
+ "zoom": 11,
10
+ "widgets":[
11
+ {
12
+ "type": "info",
13
+ "position": "top-left",
14
+ "config":{
15
+ "title": "Містобудівна документація",
16
+ "content": "<p style='font-size: 14px; color: #34495E;'>Затверджені текстові і графічні матеріали, якими регулюється планування, забудова та інше використання територій.</p>"
17
+ }
18
+ },
19
+ {
20
+ "type": "layers",
21
+ "position": "top-left"
22
+ },
23
+ {
24
+ "type": "basemaps",
25
+ "position": "bottom-left"
26
+ },
27
+ {
28
+ "type": "legend",
29
+ "position": "bottom-right"
30
+ }
31
+ ],
32
+ "old":["bp","3c95e341465d"],
33
+ "layers": [
34
+ "3c95e341465d",
35
+ "dbcb186818e3"
36
+ ]
37
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "history": true,
3
+ "height": "calc(100vh - 65px)",
4
+ "center": [
5
+ 34.65450,
6
+ 48.51174
7
+ ],
8
+ "zoom": 11,
9
+ "widgets": [
10
+ {
11
+ "type": "info",
12
+ "position": "top-left",
13
+ "config": {
14
+ "title": "Містобудівна документація",
15
+ "content": "<p style='font-size: 14px; color: #34495E;'>Затверджені текстові і графічні матеріали, якими регулюється планування, забудова та інше використання територій.</p>"
16
+ }
17
+ },
18
+ {
19
+ "type": "catalog",
20
+ "position": "top-left"
21
+
22
+ },
23
+ {
24
+ "type": "legend",
25
+ "position": "bottom-right"
26
+ },
27
+
28
+ {
29
+ "type": "basemaps",
30
+ "position": "bottom-left",
31
+ "title": "Базові карти",
32
+ "visible": true
33
+ }
34
+
35
+ ],
36
+
37
+ "tools": [
38
+ "home",
39
+ "geolocation",
40
+ "length",
41
+ "area",
42
+ "print"
43
+ ]
44
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "history": true,
3
+ "height": "calc(100vh - 65px)",
4
+ "center": [
5
+ 34.65450,
6
+ 48.51174
7
+ ],
8
+ "layers":["9587e69d35fd"],
9
+ "widgets": [
10
+ {
11
+ "type": "info",
12
+ "position": "top-left",
13
+ "config": {
14
+ "title": "Містобудівна документація",
15
+ "content": "<p style='font-size: 14px; color: #34495E;'>Затверджені текстові і графічні матеріали, якими регулюється планування, забудова та інше використання територій.</p>"
16
+ }
17
+ },
18
+ {
19
+ "type": "layers",
20
+ "position": "bottom-left",
21
+ "visible": false
22
+ },
23
+ {
24
+ "type": "dataset",
25
+ "position": "top-right",
26
+ "title": "Густота населення",
27
+ "config": {
28
+ "layer_id": "municipalities",
29
+ "attribute": "status"
30
+ },
31
+ "visible": true
32
+ },
33
+
34
+
35
+ {
36
+ "type": "legend",
37
+ "position": "bottom-right",
38
+ "config": {
39
+ "width": "200px",
40
+ "items": [
41
+ {
42
+ "label": "Чинна",
43
+ "color": "#00FF00",
44
+ "shape": "circle",
45
+ "count": 4
46
+ },
47
+ {
48
+ "label": "Втратила чинність",
49
+ "color": "red",
50
+ "shape": "circle",
51
+ "count": 1
52
+ },
53
+ {
54
+ "label": "Завантажено",
55
+ "color": "brown",
56
+ "shape": "circle"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "type": "filters",
63
+ "position": "absolute",
64
+ "style": {
65
+ "top": "20px",
66
+ "left": "430px",
67
+ "width": "1200px"
68
+ },
69
+ "title": "Фільтри (absolute)",
70
+ "config": {
71
+ "layer": "9587e69d35fd",
72
+ "layout":"inline"
73
+ }
74
+ },
75
+ {
76
+ "type": "basemaps",
77
+ "position": "bottom-left",
78
+ "title": "Базові карти",
79
+ "visible": true
80
+ }
81
+
82
+ ],
83
+
84
+ "tools": [
85
+ "home",
86
+ "geolocation",
87
+ "length",
88
+ "area",
89
+ "print"
90
+ ]
91
+ }