Multiple Dynamic Filters on a Map?

Hello there,
Thanks for the tips, it’s amazinnng
@Jeff_Hager i have a trouble with the user specific columns… I don’t know in wich sheet to add it ahaha.
Could you help me ? :o

It all depends on what you are trying to do, but if you are trying to save a choice component value, for example, then the user specific column would be placed on the same sheet where you are viewing the detail screen and have the choice component on that screen.

@Jeff_Hager, hello and thank you for your instructions and Concepts app. I was able to recreate your Region and Division example for a dynamic filter on a map. I’ve decided now to filter based on State instead, and I can’t get the visibility to show me only the items in the State the user selects from a Choice of all states. With one inline list, the filter works fine. When I add a second (or more) inline list, I believe there’s some conflict occurring.

Any idea how I can simplify your dynamic filters from two to just one choice - it’s really the visibility I’m getting hung up on. If anyone has a suggestion, I’m all :ear:t4:'s! Thanks in advance!

Oh, to add - I’ve tried putting my choice on sheet1 and my results on sheet2, and have even tried choices and results being on the same sheet. I’m getting stuck on how to filter AND/OR apply visibility.

Ex. based on state choice = Maryland, show me a list of restaurants in the state of Maryland.

If you want to filter based on the States only, have a choice component pointing to a user-specific column that would store the state.

Then add a relation matching that column to the state column in the sheet where you store all restaurants, set the matching to multiple. Display that relation in a map layout.

3 Likes

Thank you @ThinhDinh!! I did what you suggested and it worked. Just what I needed. Yessss! :checkered_flag:

2 Likes

Glad it works :smile:

Hi Jeff, I am also trying to replicate the Dynamic List Filter but I’m a bit confused with sheets and where things live.

I created one new sheet for “filter choices” and one for “user filter selections” in which I have the user specific columns. Is this correct?

The issue I am having is when I try to set up the choice components for the filters, I am forced to choose a column of my “details sheet” (instead of the “user filter selections”, as I would want it) to record user data.

Here is my app: https://toddl.glideapp.io/

I took some inspiration from @Jeff_Hager and implemented a UI with these features:

  • Filter based on distance bands or all
  • Filter based on tag (category) when your filter selection matches one of several possible tags
  • Above includes “All Categories” or places that you have favorited
  • Switch between list/map view

If glide has a more sophisticated filtering UI then I would have had to make this :wink: :wink:

One downside is that sometimes there is a 3+ second delay before items are presented. I assume that this relates to the distance calculations? This would be tolerable if the list UI provided loading feedback but it looks like empty search results.

Also, I am about to expand the places database from 100 to 1300. That will double again in a month or so. I am holding my breath that the app does not take a performance hit.

I can provide more info if people are interested.

5 Likes

That is great! Your method reminds me of @Jeff_Hager’s floating button, probably I’ll try making a floating filter button that leads to a screen with multiple choice filters at some point in the future.

1 Like

Thanks. During user tests, nobody noticed the filter button at the top. Plus when you have a map consume the whole screen there is no room leftover for other important functions (not shown in my screenshot).

1 Like

This would be worth a million dollars. I hope it happens too.

“What would be in fact a very basic solution is to add a “ADD” and “OR” feature to the configuration section of the Relation column. That way you can combine and intersect whatever elements you want in a Relation column, saving the hassle of doing all of the work you did.”

Simon.

2 Likes

I have used this method. The 3+ second delay means it’s unusable :man_shrugging:.

My app slows down to being unusable when trying to display > 50 pins. However, if the user filters it to a low number it is relatively responsive and usable.

(Relative is an important word because my entire app has 2s page loads which is on the high side already)

1 Like

I agree - too many filters and the app slows down a lot.

Hi @Jeff_Hager, nice to meet you. I’m facing a similar problem of trying to implement multiple dynamic filters in a map view. I have built the filters for the list view, however, for some reason I can’t figure out how to insert the filter component on the map page (as it is not a detail view). When I try to put the map component into the details page, it is a static image and not an interactive map.

I can’t find your multiple filter in map view in your “Concepts” app anymore – perhaps it was deleted as it was a while ago? Could you explain how you added the choice component to the map view? Thank you very much in advance!

Fair warning that the concepts app is quite old and I haven’t updated it in a long time. Some things I would probably do differently now, but for the most part, this particular concept for setting up the screen should be the same. The demo in to concepts app is labeled “Dynamic List Filter”, so you should be able to find it there. I would also consider taking a look at the following tutorial and related posts for some possible better ways to achieve filtering. My version can become quite limited if you start to have a lot of filters.

To answer your question:
First of all, a map with custom filters will only work on a Details style layout. You can’t use the maps style list because you need to be attached to a specific row of data to accept the user selected filters. The Map style list along with all of the other list style views are not attached to a specific row of data and can only show a list on the screen with nothing else.

To get a map list on a details style view, you shouldn’t use the map component. Instead you should add an inline list with the map style view. The list of items in the inline list can then be filtered by your user selected filters.

4 Likes

Thanks very much!

1 Like