Skip to content

Commit 1f48d74

Browse files
committed
feat: Layer editor should allow to define the feature ID and label (closes #1105)
1 parent 6406731 commit 1f48d74

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

map/client/i18n/map_en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@
213213
"CATALOG_CREATE_TITLE": "Create a new data layer",
214214
"CATALOG_NAME_FIELD_LABEL": "Enter the name of the new layer",
215215
"CATALOG_DESCRIPTION_FIELD_LABEL": "Enter the description of the new layer",
216-
"CATALOG_FEATURE_ID_FIELD_LABEL": "Enter a unique feature ID",
216+
"CATALOG_FEATURE_ID_FIELD_LABEL": "Enter a unique feature ID property name",
217+
"CATALOG_FEATURE_LABEL_FIELD_LABEL": "Enter the feature label property name",
217218
"CATALOG_SCHEMA_FIELD_LABEL": "Select a data scheme",
218219
"LAYER_CATEGORY_CREATE_TITLE": "Create a new category?",
219220
"LAYER_CATEGORY_NAME_FIELD_LABEL": "Enter the name of this category",

map/client/i18n/map_fr.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@
211211
"CATALOG_CREATE_TITLE": "Créer une nouvelles couche de données",
212212
"CATALOG_NAME_FIELD_LABEL": "Saisissez le nom de la nouvelle couche",
213213
"CATALOG_DESCRIPTION_FIELD_LABEL": "Saisissez la description de la nouvelle couche",
214-
"CATALOG_FEATURE_ID_FIELD_LABEL": "Saisissez un identifiant unique",
214+
"CATALOG_FEATURE_ID_FIELD_LABEL": "Saisissez un nom de propriété pour l'identifiant unique des éléments",
215+
"CATALOG_FEATURE_LABEL_FIELD_LABEL": "Saisissez un nom de propriété pour la labellisation des éléments",
215216
"CATALOG_SCHEMA_FIELD_LABEL": "Sélectionnez un schéma de données",
216217
"LAYER_CATEGORY_CREATE_TITLE": "Créer une nouvelle catégorie ?",
217218
"LAYER_CATEGORY_NAME_FIELD_LABEL": "Saisissez le nom de la catégorie",

map/common/schemas/catalog.update.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"$id": "http://www.kalisio.xyz/schemas/catalog.update.json#",
44
"title": "schemas.OBJECT_NAME",
5-
"description": "Catalog edition schema",
5+
"description": "Layer edition schema",
66
"type": "object",
77
"properties": {
88
"name": {
@@ -21,6 +21,22 @@
2121
"component": "form/KTextField",
2222
"label": "schemas.CATALOG_DESCRIPTION_FIELD_LABEL"
2323
}
24+
},
25+
"featureId": {
26+
"type": "string",
27+
"maxLength": 256,
28+
"field": {
29+
"component": "form/KTextField",
30+
"label": "schemas.CATALOG_FEATURE_ID_FIELD_LABEL"
31+
}
32+
},
33+
"featureLabel": {
34+
"type": "string",
35+
"maxLength": 256,
36+
"field": {
37+
"component": "form/KTextField",
38+
"label": "schemas.CATALOG_FEATURE_LABEL_FIELD_LABEL"
39+
}
2440
}
2541
},
2642
"required": ["name"]

0 commit comments

Comments
 (0)