@geowiki/map 0.16.12 → 0.16.14
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.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -12229,7 +12229,7 @@ var LayerLegend = ({ layer }) => {
|
|
|
12229
12229
|
}
|
|
12230
12230
|
) });
|
|
12231
12231
|
}
|
|
12232
|
-
} else if (layer.url && layer.layerName) {
|
|
12232
|
+
} else if (layer.url && layer.layerName && layer.type !== "GeoJson") {
|
|
12233
12233
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12234
12234
|
GeoServerLegend_default,
|
|
12235
12235
|
{
|
|
@@ -12239,6 +12239,9 @@ var LayerLegend = ({ layer }) => {
|
|
|
12239
12239
|
}
|
|
12240
12240
|
);
|
|
12241
12241
|
}
|
|
12242
|
+
if (layer.type === "GeoJson") {
|
|
12243
|
+
return null;
|
|
12244
|
+
}
|
|
12242
12245
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm text-gray-500", children: "No legend available" });
|
|
12243
12246
|
};
|
|
12244
12247
|
var SortableLayerItem = ({ layer, id, isOneLegend }) => {
|
package/dist/index.mjs
CHANGED
|
@@ -925,7 +925,7 @@ var LayerLegend = ({ layer }) => {
|
|
|
925
925
|
}
|
|
926
926
|
) });
|
|
927
927
|
}
|
|
928
|
-
} else if (layer.url && layer.layerName) {
|
|
928
|
+
} else if (layer.url && layer.layerName && layer.type !== "GeoJson") {
|
|
929
929
|
return /* @__PURE__ */ jsx12(
|
|
930
930
|
GeoServerLegend_default,
|
|
931
931
|
{
|
|
@@ -935,6 +935,9 @@ var LayerLegend = ({ layer }) => {
|
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
+
if (layer.type === "GeoJson") {
|
|
939
|
+
return null;
|
|
940
|
+
}
|
|
938
941
|
return /* @__PURE__ */ jsx12("div", { className: "text-sm text-gray-500", children: "No legend available" });
|
|
939
942
|
};
|
|
940
943
|
var SortableLayerItem = ({ layer, id, isOneLegend }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geowiki/map",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.14",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"react-hotkeys-hook": "^4.5.0",
|
|
25
25
|
"react-leaflet": "^4.2.1",
|
|
26
26
|
"zod": "^3.25.7",
|
|
27
|
-
"@geowiki/
|
|
28
|
-
"@geowiki/
|
|
29
|
-
"@geowiki/
|
|
30
|
-
"@geowiki/
|
|
31
|
-
"@geowiki/ui": "0.16.
|
|
27
|
+
"@geowiki/core": "0.16.14",
|
|
28
|
+
"@geowiki/cms-proxy": "0.16.14",
|
|
29
|
+
"@geowiki/evoland-api-proxy": "0.16.14",
|
|
30
|
+
"@geowiki/design-system": "0.16.14",
|
|
31
|
+
"@geowiki/ui": "0.16.14"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"tailwindcss-animate": "^1.0.7",
|
|
88
88
|
"tsup": "^8.5.1",
|
|
89
89
|
"typescript": "5.4.2",
|
|
90
|
-
"eslint-config-custom": "0.0.0",
|
|
91
90
|
"tailwind-config": "0.0.0",
|
|
92
|
-
"tsconfig": "0.0.0"
|
|
91
|
+
"tsconfig": "0.0.0",
|
|
92
|
+
"eslint-config-custom": "0.0.0"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"build": "tsup && tailwindcss -i styles.css -o dist/styles.css --minify",
|