Add custom WFS search as default search instead of nominatim search

9 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Zsolt Magyar

unread,
Sep 15, 2025, 5:22:12 AM (8 days ago) Sep 15
to mapstore-users
  Hi all, I want to replace the default nominatim OpenStreetMap search on my map, and make disable the options of search services on the user side. 

The behaviour that I’ve seen: The nominatim search always the default search, even if I tried to configure in localConfig.json. When I create a MapContext with search plugin override, and I make a Map from that Context, it has the same result. Only User can add new search service on the Map. The default nominatim search set to default by the page refresh. 

I think, I inserted the config below at a wrong place of localConfig.json 

Where can I insert my own search config, and make it as deafault?  

Thanks in advance!
Zsolt

  "text_search_config": {
    "services": [
      {
        "type": "wfs",
        "name": "KorzetKereso",
        "displayName": "${properties.ETK_NEV}",
        "priority": 1,
        "options": {
          "url": "https://erdoterkep.nebih.gov.hu/geoserver/nebih/wfs",
          "typeName": "nebih:MV_KORZETEK",
          "queriableAttributes": [
            "ETK_NEV"
          ],
          "sortBy": "ETK_NEV",
          "maxFeatures": 10,
          "srsName": "EPSG:4326",
          "placeholder": "Írj be körzet nevet...",
          "tooltip": "Körzet kereső"
        },
        "launchInfoPanel": "single_layer",
        "openFeatureInfoButtonEnabled": true,
        "forceSearchLayerVisibility": true
      }
    ],
    "override": true
  }

Zsolt Magyar

unread,
Sep 15, 2025, 5:22:18 AM (8 days ago) Sep 15
to mapstore-users

Hi all,

I want to replace the default nominatim OpenStreetMap search on my map, and make disable the options of search services on the user side.

The behaviour that I’ve seen: The nominatim search always the default search, even if I tried to configure in localConfig.json. When I create a MapContext with search plugin override, and I make a Map from that Context, it has the same result. Only User can add new search service on the Map. The default nominatim search set to default by the page refresh.

 I think, I inserted the config below at a wrong place of localConfig.json

Where can I insert my own search config, and make it as deafault?

Thanks in advance:
Zsolt

  "SearchServicesConfig": {

Lorenzo Natali

unread,
Sep 18, 2025, 3:44:08 AM (5 days ago) Sep 18
to mapstore-users
Hi,
The search services can be configured in "Search" plugin "services" array in localConfig.json --> plugins --> desktop
To disable the option to register services, I think is sufficient to remove the plugin "SearchServicesConfig" still in localConfig.json --> plugins --> desktop 

Hope it helps,
Lorenzo.
Reply all
Reply to author
Forward
0 new messages