Skip to content

Menu Bar

In this section you will learn how to use the Menu Bar. As mentioned before, it includes connections to the Home Page and the Account.

It contains also a Search bar and a Burger menu that will be treated in details here below.

The Search Bar of the portal allows you to find point of interests (POIs), streets or locations by name or by coordinates.

  • In the Search Bar, for example, Type the text "rome" then Select the first record. The map will automatically re-center on that area delimiting it by a polygon in the case of an area, by a line in the case of a linear shape (e.g. streets, streams) and by a marker in the case of a point.

Burger Menu

The Burger Menu is the core of the Menu Bar and it will be later addressed in details. It contains several options to add data from different sources to the map, to perform measurments and to save, print and share the created map.

Click on the following links to learn more about the main options:

  • PRINT: allows you to print a created map;
  • ADD LOCAL VECTOR FILES: allows to import from your machine vector files to be added to the map;
  • CATALOG: allows you to import data from several remote services;
  • MEASURE: tools to perform measurments on the map;
  • ANNOTATIONS: allows you to create customized annotations and add them to the map;
  • SHARE: allows you to share your map.

Custom WFS Searches

When you search a place, you might want to extend the default OSM results through additional WFS Search Services. The Configure search services option of MapStore allows you to do that.
The following example shows the steps required to set up a custom service.
To better understand how it works, create an empty map and try to search somethings, for example 'grand', and see the result provided by the OpenStreetMap Nominatim search engine:

Let's customize it!

  • Open the Settings panel from the Burger Menu

  • Click on the Configure search services button to open the Create/edit search service panel

    The custom search services are listed in the Available services section.

  • Click on the Add button to open the WFS service props form and fill out it

    • Name can be whatever you prefer, it is a good practice to refer it to some other properties as the Layer and/or the Attributes

    • Service url is the WFS you want to call, in this example we used a WFS service available on the GeoSolutions Demo Server

    • Layer is the layer from which you want to retrieve information, for example the TIGER layer Manhattan (NY) roads

    • Attributes identifies which field should be considered by the search query, in this case we are interested in roads' name so we choose the NAME field

  • Click on the Next button to open the Result display properties form

    • Title is displayed on the top of each results row. You might want to show here the content of the fields of interest, in this example we choose to display the NAME field values so we type ${properties.NAME}

    • Description is displayed to the bottom of each results row. We use Manhattan Roads to point out the source layer name but feel free to change it. You can use the same property placeholder syntax here.

    • Priority is a weight assigned to the custom results. It is used to sort all the search results so higher values determine higher positions in the results list. The default OpenStreetMap Nominatim search engine result has priority equals to 5, so to see our custom results in the first positions we should set a value greater than 5 for this field. We use 6.

  • Click on the Next button to open the Optional props form

    • Sort by lets you decide on which field to sort the results, we choose NAME again

    • Max features is the maximum number of rows displayed in your custom search results, in this example we consider that 5 is enough

  • Click on the Save/Update button to save your settings

Now you can see your custom WFS Search Service in the Available services list, click on the Edit icon if you want to change some settings or on the Delete icon to remove this service from the list.

Come on to test our new search service. Type 'grand' in the search box again and take a look at the results:

We have 5 (the Max features) more results displayed in the first five positions (because of Priority), these results are labelled as Manhattan Roads (the Description) and they show the roads' names (the Title) at the top of each row. The results are sorted by NAME (the Sort by property).
The Override default services option of the Create/edit search service panel, if enabled, allows to show only those results from your custom service. Let's tick the checkbox corresponding to this option:

Since the option is enabled no results from the default service are shown: