@opengis/gis 0.2.83 → 0.2.85

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.
@@ -45,7 +45,8 @@
45
45
  "ua": "Група сервісу",
46
46
  "name": "group_id",
47
47
  "data": "gis.group_list",
48
- "format": "badge"
48
+ "format": "badge",
49
+ "width": 300
49
50
  },
50
51
  {
51
52
  "ua": "Шар на мапі",
@@ -69,8 +70,7 @@
69
70
  {
70
71
  "ua": "Таблиця в базі даних",
71
72
  "name": "table_name",
72
- "format": "text",
73
- "width": 350
73
+ "format": "text"
74
74
  },
75
75
  {
76
76
  "ua": "Публічний",
@@ -41,7 +41,8 @@
41
41
  "ua": "Група",
42
42
  "name": "group_id",
43
43
  "data": "gis.group_list",
44
- "format": "badge"
44
+ "format": "badge",
45
+ "width": 300
45
46
  },
46
47
  {
47
48
  "ua": "Ключові слова",
@@ -52,7 +53,6 @@
52
53
  {
53
54
  "ua": "Джерело",
54
55
  "name": "source_path",
55
- "width": 100,
56
56
  "slot" : "<span class='text-ellipsis'>{{data.source_path}}</span>",
57
57
  "format": "slot"
58
58
  },
@@ -1,32 +1,32 @@
1
- [
2
- {
3
- "id": "1",
4
- "text": "Діючий",
5
- "color": "#1ab394"
6
- },
7
- {
8
- "id": "2",
9
- "text": "Зупинений",
10
- "color": "#ed82c8"
11
- },
12
- {
13
- "id": "3",
14
- "text": "Скасований",
15
- "color": "#4a4a4a"
16
- },
17
- {
18
- "id": "5",
19
- "text": "Проектний",
20
- "color": "#6495ed"
21
- },
22
- {
23
- "id": "7",
24
- "text": "Очікує розгляду",
25
- "color": "#92b8ef"
26
- },
27
- {
28
- "id": "10",
29
- "text": "Архівний",
30
- "color": "#d48428"
31
- }
1
+ [
2
+ {
3
+ "id": "1",
4
+ "text": "Діючий",
5
+ "color": "#1ab394"
6
+ },
7
+ {
8
+ "id": "2",
9
+ "text": "Зупинений",
10
+ "color": "#ed82c8"
11
+ },
12
+ {
13
+ "id": "3",
14
+ "text": "Скасований",
15
+ "color": "#4a4a4a"
16
+ },
17
+ {
18
+ "id": "5",
19
+ "text": "Проектний",
20
+ "color": "#6495ed"
21
+ },
22
+ {
23
+ "id": "7",
24
+ "text": "Очікує розгляду",
25
+ "color": "#92b8ef"
26
+ },
27
+ {
28
+ "id": "10",
29
+ "text": "Архівний",
30
+ "color": "#d48428"
31
+ }
32
32
  ]
@@ -1 +1 @@
1
- select uid, coalesce(coalesce(sur_name,'')||coalesce(' '||user_name,'') ||coalesce(' '||father_name,''),login) as text from admin.users
1
+ select uid, coalesce(coalesce(sur_name,'')||coalesce(' '||user_name,'') ||coalesce(' '||father_name,''),login) as text from admin.users
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,9 @@
19
19
  "migrate": "MIGRATE=true bun ./node_modules/@opengis/fastify-table/dist/script/migrate.js",
20
20
  "start": "bun server",
21
21
  "start:kyiv-demo": "bun --env-file=.env.kyiv-demo server",
22
- "start:kamyanske": "bun --env-file=.env.kamyanske server",
22
+ "kamyanske": "bun --env-file=.env.kamyanske server",
23
23
  "start:kr": "bun --env-file=.env.kr server",
24
+ "poltava": "bun --env-file=.env.poltava --hot server",
24
25
  "dev:kyiv-demo": "bun --env-file=.env.kyiv-demo --hot server",
25
26
  "dev:kamyanske": "bun --env-file=.env.kamyanske --hot server",
26
27
  "dev:kr": "bun --env-file=.env.kr --hot server",
@@ -59,8 +59,8 @@ export default async function getMap({ params = {}, pg = pgClients.client }, rep
59
59
  if (layerIds.length > 0) {
60
60
  const [resServices, resOgc, resRasters, resCarto] = await Promise.all([
61
61
  pg.query(`SELECT service_id::text as id, *, st_asgeojson(bbox)::json as bbox, st_asgeojson(center)::json as center FROM gis.services WHERE is_active = true AND is_public = true AND service_id::text = ANY($1)`, [layerIds]),
62
- pg.query(`SELECT ogc_service_id::text as id, url as service_url, * FROM gis.ogc_service WHERE enabled = true AND isadmin = false AND ogc_service_id::text = ANY($1)`, [layerIds]),
63
- pg.query(`SELECT raster_id::text as id, *, st_asgeojson(bbox)::json as bbox, st_asgeojson(center)::json as center FROM gis.rasters WHERE is_active = true AND ispublic = true AND isadmin = false AND raster_id::text = ANY($1)`, [layerIds]),
62
+ pg.query(`SELECT ogc_service_id::text as id, url as service_url, * FROM gis.ogc_service WHERE enabled = true AND ispublic = true AND ogc_service_id::text = ANY($1)`, [layerIds]),
63
+ pg.query(`SELECT raster_id::text as id, *, st_asgeojson(bbox)::json as bbox, st_asgeojson(center)::json as center FROM gis.rasters WHERE is_active = true AND is_public = true AND isadmin = false AND raster_id::text = ANY($1)`, [layerIds]),
64
64
  pg.query(`SELECT cartocss_id::text as id, *, st_asgeojson(geom)::json as bbox FROM gis.cartocss WHERE enabled = true AND is_public = true AND cartocss_id::text = ANY($1)`, [layerIds])
65
65
  ]);
66
66
 
@@ -80,14 +80,16 @@ export default async function rtile({
80
80
  ? Buffer.from(raster.source_path).toString('base64url')
81
81
  : undefined;
82
82
 
83
- const data = await RenderTile({
83
+ const param = {
84
84
  path: cartoExists ? null : raster.source_path, // for rasters only
85
85
  name: cartoExists && carto.source_path ? `vector/${carto.source_path}` : id, // required for cartocss
86
86
  width: 256,
87
87
  bbox,
88
88
  ttl,
89
89
  debug: query.debug,
90
- });
90
+ };
91
+ // console.log(param);
92
+ const data = await RenderTile(param);
91
93
 
92
94
  if (query.debug) {
93
95
  return {