Can't add map filter, no TOP-HITS

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
3.1, Dashboard, Linux, Chrome

Describe the issue:
In the docs it says you can add a filter but this is not possible.

image

After adding a Document layer, I try to add a filter:

Should there be an ADD button or link somewhere?

In ElasticSearch / Kibana V7 this is what you get:

It seems this Add Filter button is missing in OpenSearch. Also there is no way to only show the MOST RECENT location using the top-hits feature. So in OpenSearch you get multiple points displayed for a single ENTITY.

In our case the index contains a location point PER SECOND for multiple vehicles. We would like to only show the LAST-RECORDED location of each vehicle.

@cvdb I’ve just tested map visualization with sample flight data in OS 3.1.0.
Just after adding a document layer, there is no Add filter button available.

However, after selecting the Index pattern, the Add filter button has appeared.

Hi Pablo,

That’s interesting.

I have selected the index pattern and the field within the index, still no filter button.
It may be an issue specific to my version or a missing or incorrect config.

One thing we did manage to get working is that when the visualisation (without any filters) is added to a dashboard and you add global filters in the dashboard, those filters are applied in the visualisation.

What I was actually hoping to get working with the filters is the TOP-HITS feature in Elastic. Our index has many location docs, one each second, but we only want to show the MOST RECENT location of the vehicle over the selected time period. Currently we get a point on the map FOR EACH doc in the index.

Added to this the index contains location data for many VEHICLES, our goal is to show the most recent location of each vehicle.

Either way it does look like there is some issue here since we don’t see the ADD FILTER button.

One thing to point out is we are using WORKSPACES. This may have something to do with it.