Need to show all items from a db table on a map

I have a db table called Market with a bunch of data of different markets and addresses.

I want the index page to have a map element that displays ALL of the markets, regardless of if the user is logged in or not, or the current page’s Market. But I’m not sure how to do this? It seems like the index page, if I set it as a Market, then the map element seems to require me to get the data from the current page’s Market, as opposed to all Markets, period.

New to Bubble today - so maybe just missing something obvious.

Hey @james46 :wave:

Happy to help. Welcome to the Bubble Community! :tada:

You should be using ‘Do a Search for’ to find all of your Markets. If there will be a lot, I recommend putting a constraint based on the distance from the location you are looking at on the map.

Does that help? :blush:

Thank you! It kind of helped, but I still can’t get the test marker I have in the dev db to show up?? I don’t know what marker is currently showing it seems arbitrary… Can you help me with the config? See screenshot attached.

Market is a db table that has Address as a field (also has Lat/Long as 2 separate fields in case those are preferable).

I did a “search for” but it’s not intuitive to me how to set up the other params to make this work…

Hmm :thinking: Good question.

Instead of geographic address, can you change it to a Market? Then choose the address field when it asks for the field? I am trying to remember how it is set up normally. Change the Type of Markers first and then send another screenshot. :blush:

I found a video tutorial!

For anyone else: https://www.youtube.com/watch?v=dNoM7D6ymsk

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.