@opengis/gis 0.2.84 → 0.2.86
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/index.css +1 -1
- package/dist/index.js +5392 -5448
- package/dist/index.umd.cjs +70 -55
- package/package.json +1 -1
- package/server/routes/map/maps/get.map.js +2 -2
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|