@opengis/gis 0.2.165 → 0.2.167
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/{CardIcon-B-HKyoDs.js → CardIcon-golqfa-Y.js} +1 -1
- package/dist/{EntityTablePage-BnAJuEwI.js → EntityTablePage-BhmxePgR.js} +1 -1
- package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-L9BfGfUU.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-BFa27smR.js} +1 -1
- package/dist/{HeaderActions.vue_vue_type_script_setup_true_lang-D3oMTMO0.js → HeaderActions.vue_vue_type_script_setup_true_lang-Dp0MjgnU.js} +1 -1
- package/dist/{MapSettings-B1lSk4KX.js → MapSettings-F_DT3xKl.js} +1 -1
- package/dist/{RastersTablePage-aEh696Or.js → RastersTablePage-3rXQ0baG.js} +1 -1
- package/dist/cartocss-CN-UrS7V.js +1586 -0
- package/dist/{import-utils-HEL359RU.js → import-utils-F5ErbNz1.js} +1 -1
- package/dist/{index-ClqqnPEd.js → index-CdB0VXro.js} +4461 -4426
- package/dist/index.css +1 -1
- package/dist/index.js +12 -12
- package/dist/index.umd.cjs +41 -54
- package/dist/{raster-DFD-dtui.js → raster-DWmiWlf7.js} +3 -3
- package/dist/{register-DMJ_OnzW.js → register-D1jLD0hK.js} +3 -3
- package/dist/service-JGNtth-y.js +2593 -0
- package/dist/{vs-datatable-C27Dlfo3.js → vs-datatable-BWItxbtK.js} +1 -1
- package/package.json +1 -1
- package/server/routes/map/controllers/gis.icon.js +8 -5
- package/dist/cartocss-BoYdEjtS.js +0 -1065
- package/dist/service-FcW2Gvt4.js +0 -3471
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as O, defineAsyncComponent as I, useModel as R, ref as y, watch as K, openBlock as o, createElementBlock as s, createElementVNode as e, createVNode as $, unref as x, withCtx as S, createStaticVNode as V, useSlots as P, computed as H, Fragment as b, createTextVNode as U, createCommentVNode as N, renderList as A, normalizeStyle as Q, toDisplayString as M, normalizeClass as z, withModifiers as X, createBlock as Y, resolveDynamicComponent as ee, withDirectives as te, renderSlot as ne } from "vue";
|
|
2
2
|
import { notify as E } from "@opengis/core";
|
|
3
3
|
import { Edit as le, Trash as oe } from "lucide-vue-next";
|
|
4
|
-
import { _ as u } from "./index-
|
|
4
|
+
import { _ as u } from "./index-CdB0VXro.js";
|
|
5
5
|
const se = { class: "flex items-center justify-center col-span-3 gap-2" }, re = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, ie = /* @__PURE__ */ F({
|
|
6
6
|
__name: "vs-datatable-controls",
|
|
7
7
|
props: /* @__PURE__ */ O({
|
package/package.json
CHANGED
|
@@ -176,12 +176,14 @@ async function createIcon(options) {
|
|
|
176
176
|
return sharp(Buffer.from(svg)).png().toBuffer();
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
async function
|
|
179
|
+
async function getIcon(options, nocache = false) {
|
|
180
180
|
await iconDirectoryReady;
|
|
181
181
|
|
|
182
182
|
const iconPath = path.join(iconDirectory, options.filename);
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
if (!nocache) {
|
|
184
|
+
const cachedIcon = await readFileIfExists(iconPath);
|
|
185
|
+
if (cachedIcon) return cachedIcon;
|
|
186
|
+
}
|
|
185
187
|
|
|
186
188
|
const icon = await createIcon(options);
|
|
187
189
|
if (!icon) return null;
|
|
@@ -194,11 +196,12 @@ export default async function gisIconApi(req, reply) {
|
|
|
194
196
|
const options = parseIconFilename(req.params?.['*'] || '');
|
|
195
197
|
if (!options) return reply.status(400).send('invalid icon name');
|
|
196
198
|
|
|
197
|
-
const
|
|
199
|
+
const nocache = !!req.query?.nocache;
|
|
200
|
+
const image = await getIcon(options, nocache);
|
|
198
201
|
if (!image) return reply.status(404).send('icon not found');
|
|
199
202
|
|
|
200
203
|
return reply
|
|
201
204
|
.type(contentTypeByFormat[options.format])
|
|
202
|
-
.header('Cache-Control', 'public, max-age=31536000, immutable')
|
|
205
|
+
.header('Cache-Control', nocache ? 'no-cache' : 'public, max-age=31536000, immutable')
|
|
203
206
|
.send(image);
|
|
204
207
|
}
|