# Let users filter map

**URL:** <https://forum.adalo.com/t/let-users-filter-map/17521>\
**Category:** Design\
**Created:** [September 21, 2021, 11:45am UTC](https://forum.adalo.com/t/let-users-filter-map/17521 "2021-09-21T11:45:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![parksidecreator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/parksidecreator/32/15737_2.png) [@parksidecreator](https://forum.adalo.com/u/parksidecreator)\
**Post date:** [September 21, 2021, 11:45am UTC](https://forum.adalo.com/t/let-users-filter-map/17521/1 "2021-09-21T11:45:59Z")

</div>

Hi there,

Is there an option to let users filter objects in the map?  
I have a map with some markers (10-15) and there are 4-5 different “categories”.  
Would like to let users filter out so it only shows one chosen category at a time.

Kindly

---

<div class="post-metadata">

**Author:** ![Sutter\_j44](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/sutter_j44/32/20438_2.png) [@Sutter\_j44](https://forum.adalo.com/u/Sutter_j44)\
**Post date:** [September 21, 2021, 11:56am UTC](https://forum.adalo.com/t/let-users-filter-map/17521/2 "2021-09-21T11:56:02Z")

</div>

@parksidecreator Yes, there are ways to filter maps results. You can simply tell the map component to filter based on input or dropdown value. I’ll attached a screenshot of my setup. On my map screen, I have two potential inputs that users can filter by: a text input (search value) and a dropdown that narrows the map results by a specific city. Additionally, I added a third filter that eliminates showing markers for businesses that lack an actual street address: for instance, a business that doesn’t have a brick-and-mortar location, a food truck or some other business that does mobile or on-call service only. So for those businesses that won’t show on the map due to lack of street address, they’ll still show in a list view and at least show the city they service.

 ![Screen Shot 2021-09-21 at 7.50.28 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/f8bf948160a0c01b44109698135477839e88a5c8.jpeg)

---

<div class="post-metadata">

**Author:** ![Sutter\_j44](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/sutter_j44/32/20438_2.png) [@Sutter\_j44](https://forum.adalo.com/u/Sutter_j44)\
**Post date:** [September 21, 2021, 12:02pm UTC](https://forum.adalo.com/t/let-users-filter-map/17521/3 "2021-09-21T12:02:47Z")

</div>

And to explain my “Search Index” field that my screenshot says it’s filtering by, I have a field within my business listings database that takes business name, categories, keywords, description, and any other field I want and populates them in one location. So imagine having a user sign up and fill out a form for their business…they’ll put in their info, which would go to two locations: 1) the actual fields they belong to, which would be publicly visible in a list and 2) the search index field, which is hidden, has all the info in one place and is only used for filtering and search purposes.

---

<div class="post-metadata">

**Author:** ![bmj5205](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bmj5205](https://forum.adalo.com/u/bmj5205)\
**Post date:** [November 14, 2021, 2:52pm UTC](https://forum.adalo.com/t/let-users-filter-map/17521/4 "2021-11-14T14:52:12Z")

</div>

Hi there,  
I was struggling to get my map component to filter until I ran across this post. I was using:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/e/e30e8281f0fbf2b17a38f2a0c4e18f46acf5cac7.png)

but I noticed you use “CONTAINS” (whereas I was using “Is EQUAL to”) and so I switched it and worked!

Any idea why the Equals doesn’t work? The zip codes are both Text elements.

Thanks!

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [November 14, 2021, 3:18pm UTC](https://forum.adalo.com/t/let-users-filter-map/17521/5 "2021-11-14T15:18:42Z")

</div>

Hi @bmj5205 👋

Welcome to the community 🥳

This will help you.

> **[Filters and Conditions](https://help.adalo.com/component-basics/filters-and-conditions)**
>
> Use Adalo's built-in logic operators to filter records, create conditional actions, or change a component's visibility

Check Logical Operators section.

Thank you

---

<div class="post-metadata">

**Author:** ![bmj5205](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bmj5205](https://forum.adalo.com/u/bmj5205)\
**Post date:** [November 14, 2021, 9:57pm UTC](https://forum.adalo.com/t/let-users-filter-map/17521/6 "2021-11-14T21:57:29Z")

</div>

Hi there @Dilon and thanks for the welcome!

I checked the manual and saw:

> **Is equal to** - This operator is case sensitive and the two pieces of text must match each other _exactly_ - even if there is a hidden return or space in the text. This operator is very strict.

and the data I have is just a text string representing a zip code: **11372**  
I went back and checked and made sure there was no spaces in the records that have this data yet the “Is equal to” is still not matching them. I even copy/pasted the string back in from notepad into all locations in my data records.

Is there a hidden null/nil/space or **\0** that I’m not catching?

---

<div class="post-metadata">

**Author:** ![parksidecreator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/parksidecreator/32/15737_2.png) [@parksidecreator](https://forum.adalo.com/u/parksidecreator)\
**Post date:** [November 15, 2021, 12:15am UTC](https://forum.adalo.com/t/let-users-filter-map/17521/7 "2021-11-15T00:15:04Z")

</div>

Be sure to have cleared _space_ before **and/or** after the zip code in both the properties and the condition-field.

Good luck,  
B

---

<div class="post-metadata">

**Author:** ![parksidecreator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/parksidecreator/32/15737_2.png) [@parksidecreator](https://forum.adalo.com/u/parksidecreator)\
**Post date:** [November 15, 2021, 12:36am UTC](https://forum.adalo.com/t/let-users-filter-map/17521/8 "2021-11-15T00:36:34Z")

</div>

Have a look at this answer it might do the trick.

> [@parksidecreator](#):
>
> Be sure to have cleared _space_ before **and/or** after the zip code in both the properties and the condition-field.

---

<div class="post-metadata">

**Author:** ![bmj5205](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bmj5205](https://forum.adalo.com/u/bmj5205)\
**Post date:** [November 15, 2021, 1:06am UTC](https://forum.adalo.com/t/let-users-filter-map/17521/9 "2021-11-15T01:06:16Z")

</div>

Hi  
Thanks for responding. The condition-field doesn’t have any constant. It’s just the variable as shown here:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/d/dc39afe9f6800a3c8d394a5ff921f75e008524e9.png)

and you can see below that this is all the selectable text in that field:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/8/86a30a4801b9ba7afecef39d10341021e2aec8fc.png)

But if I switch from “Is Equal To” to “Contains”, this works.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [November 15, 2021, 1:51am UTC](https://forum.adalo.com/t/let-users-filter-map/17521/10 "2021-11-15T01:51:34Z")

</div>

So if that zip code some part is include in logged in user zip code then that locations will show. ( No Case Sensitive )

But is equal is that correct zip code has to match with logged in user’s zip code. ( Case Senstive)

Hope it helps!

Thank you

---

<div class="post-metadata">

**Author:** ![bmj5205](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bmj5205](https://forum.adalo.com/u/bmj5205)\
**Post date:** [November 19, 2021, 7:53pm UTC](https://forum.adalo.com/t/let-users-filter-map/17521/11 "2021-11-19T19:53:59Z")

</div>

Hi,  
The “Is equal to” seems to work fine with text. If I change my filter to this:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/1674fe519de74f1c627b97bb523a978fd0ab585a.png)

the map shows the events I want. So great!

But if I change the filter to this:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/5bcee73efae467d7654b457b4588089aad89a6c8.png)

the geocoding fails. even though what’s stored in Users Record \> UserZip is exactly the same text (11372). No markers at all are shown… ¯\_(ツ)\_/¯
