User locator in maps

Hi, im very new to bubble.is and im trying to figure out how to create a map that shows logged in user within a 10 mile radius

Hi cxrdero,

Just follow the steps below:

  1. Add a field location, type “geographic location” to the data type user in the data tab of bubble. Also add a field “last logged in date” , type date. screenshots shows how to do the latter.
  2. Go the workflow tab and create a workflow" do every 5 seconds" only when current user is logged in. you can change the time interval from 5 seconds to 300. Select the action: Make changes to user: and update their location and last logged in date.

  3. Add a map element to your page. Have it display a list of markers. With the source being a search of all users within 10km of current user and with lastlogged in date within last 300 seconds (see screenshot) Note it says -300 meaning in last 5 minutes/300 seconds.

    Hope this helps. Let me know if you have further questions
    happy bubbling,
    Julius
1 Like

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