Unable to make the DropDown custom list work

2 views
Skip to first unread message

Alexandre Gacon

unread,
Dec 30, 2025, 9:34:26 AM (3 days ago) 12/30/25
to mapstor...@googlegroups.com
Hello,

We are trying to configure a DropDown list editor for a given layer+attribute couple and we haven't managed to do it up to now.

The configuration done in our map context for the FeatureEditor plugin looks like this:

{
  "cfg": {
    "editingAllowedRoles": [
      "ADMIN",
      "USER"
    ],
    "customEditorsOptions": {
      "rules": [
        {
          "regex": {
            "attribute": "^avancement$",
            "typeName": "^smart_energies:couche_collaborative_polygones$"
          },
          "editor": "DropDownEditor",
          "editorProps": {
            "values": [
              "Construction",
              "Exploitation",
              "Développement",
              "Autre"
            ]
          }
        }
      ]
    }
  },
  "override": {}
}

and in our geoserver instance we have a feature layer

smart_energies:couche_collaborative_polygones with a field avancement.

When we create a map with this map context and we try to edit the layer, we never have our DropDownEditor. We have the default behavior.

What should we change to have it working? We use the last version of MapStore and the last version of GeoServer.

--
Alexandre Gacon
Reply all
Reply to author
Forward
0 new messages