@opengis/gis 0.2.66 → 0.2.67
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/package.json
CHANGED
|
@@ -19,12 +19,26 @@ export default async function layerList({
|
|
|
19
19
|
|
|
20
20
|
const q = `
|
|
21
21
|
select service_id as id, name, category, style, bbox::box2d as extent, st_asgeojson(bbox)::json as geom, null as url, coalesce(service_type, 'vtile') as service, group_id,
|
|
22
|
-
popup, card, filters,
|
|
22
|
+
popup, card, filters, source_path
|
|
23
23
|
from gis.services where is_active and ${!user.uid ? 'is_public' : '1=1'}
|
|
24
24
|
union all
|
|
25
25
|
select ogc_service_id as id, name, category, null as style, geom::box2d as extent, st_asgeojson(geom)::json as geom, url, 'ogc' as service, group_id,
|
|
26
|
-
null as popup, null as card, null as filters,
|
|
26
|
+
null as popup, null as card, null as filters, table_name as source_path
|
|
27
27
|
from gis.ogc_service where enabled and ${!user.uid ? 'ispublic' : '1=1'}
|
|
28
|
+
union all
|
|
29
|
+
select raster_id as id, name, null as category, null as style, geom::box2d as extent, st_asgeojson(geom)::json as geom,
|
|
30
|
+
coalesce('/api/gis-rtile/'||rtrim(
|
|
31
|
+
replace(
|
|
32
|
+
replace(
|
|
33
|
+
encode(source_path::bytea, 'base64'),
|
|
34
|
+
'+', '-'
|
|
35
|
+
),
|
|
36
|
+
'/', '_'
|
|
37
|
+
),
|
|
38
|
+
'='
|
|
39
|
+
)||'/{z}/{x}/{y}.png',null) as url, 'raster' as service, group_id,
|
|
40
|
+
null as popup, null as card, null as filters, source_path
|
|
41
|
+
from gis.rasters s where is_active and ${!user.uid ? 'is_public' : '1=1'}
|
|
28
42
|
`;
|
|
29
43
|
|
|
30
44
|
if (user.uid && sql) return q;
|