You can set a search for a specific columns within layers in your Map Portal. Custom search works both for Private and Public Map portals. Custom Search will override GIS Cloud standard search.

Note: to be able to set custom search for specific columns, it is necessary to import layer into the Database and add layer from the Database datasource into a map. Here you can find instructions.

After importing layer into the Database, follow instructions below:

  1. Open map in Map Editor.
  2. Find Layer ID under the Layer properties (Layer tab – Edit layer).
  3. Click More info button and copy Layer ID.
  4.  

    customsearch1

     

  5. Under the Map tab click Map Properties and click Map Options tab.
  6.  

    Custom_Search1

     

  7. In the Name box write SEARCH_FIELDS. This option instruct the search engine to search inside specified layers and attributes.
  8.  

    Custom_Search8

     

  9. In the Value box open braces ({).
  10. Open quotes (“) and write Layer ID.
  11. Close quotes (“) and write colon after quotes (:).
  12. Line should look like this now: {“311482”:

  13. Open square brackets ([).
  14. Open quotes (“) and write name of the column you want to search.
  15. Note: Make sure that you write Name of the column and not column alias. You can find column name under the Layer Properties (Layer tab – Edit layer) and Attributes tab.

     

    Custom_Search12

     

  16. Close quotes (“) and square brackets (]).
  17. Note: if you want to add more columns within one layer write comma (,) and repeat steps 10-11 i.e. {“311482”: [“city”,”country”,”pop1955″]}

  18. Close braces (}).
  19. Click Add button.
  20.  

    Custom_Search4

     

  21. In the Name box write RESULT_FIELDS. This option shows which attributes will be shown inside search results.
  22. Copy and paste values from the SEARCH_FIELDS. Click Add button and Save.
  23.  

    Custom_Search5

     

Note: Characters are case sensitive so make sure that you type the exact option and column name.

Map options should look like this:

 

Custom_Search6

 

Refresh your Map Portal and search for an object. Only columns set in the Map options should be visible.

 

Custom_Search7

 

Setting Search for more layers

It is also possible to set search for more layers in one map. To set search for more layers:

  1. Open map in Map Editor and open Map Properties – Map options.
  2. In the Value box after square brackets (]) and add comma (,).
  3. Copy Layer ID from the Layer properties.
  4. Repeat steps 7-11.
  5. Copy and paste new values both in the SEARCH_FIELDS and RESULT_FIELDS.
  6.  

    Custom_Search9

     

  7. Click Save.
  8. Refresh your Map Portal.
  9.  

Custom_Search11