# Maps Element Find Current Users Location

**URL:** <https://forum.bubble.io/t/maps-element-find-current-users-location/229528>\
**Category:** Need help\
**Created:** [October 23, 2022, 8:13pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528 "2022-10-23T20:13:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nazostro](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nazostro](https://forum.bubble.io/u/nazostro)\
**Post date:** [October 23, 2022, 8:13pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/1 "2022-10-23T20:13:37Z")

</div>

Hello! I’ve searched through the Forum to find what I am looking for, and so far no luck - lots of great ideas with Datasets, users, and what not, but not what I am looking for.

I am trying to achieve a very simple thing… displaying the current users location on the map element.

Info

1. My web app doesn’t have user login/accounts. They go to the URL, and bam, the entire thing is a map. I created a little button that should take you to the users location when clicked (like google maps)

Any way to do this without having to create user accounts?

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [October 23, 2022, 8:45pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/2 "2022-10-23T20:45:57Z")

</div>

I could be missing something, but seems like a single datatype would do the trick.

**Create the datatype:**

 ![Screenshot 2022-10-23 at 1.43.56 PM](https://us1.discourse-cdn.com/bubble/original/3X/a/8/a820aa748f5c71a893bfa19869ad7bff46e973ae.png)

**Set your map to the list of that datatype:**

 ![Screenshot 2022-10-23 at 1.42.42 PM](https://us1.discourse-cdn.com/bubble/original/3X/2/3/2326370e935d641abacc1ad02fde4e08c02881d3.jpeg)

**Then create a workflow on page load that grabs the users location and adds it to the list. You’ll want to add a constraint that only adds if that location isn’t already in the database.**

 ![Screenshot 2022-10-23 at 1.42.57 PM](https://us1.discourse-cdn.com/bubble/original/3X/8/b/8ba031b684172b94681060169256a5509a545644.png)

---

<div class="post-metadata">

**Author:** ![nazostro](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nazostro](https://forum.bubble.io/u/nazostro)\
**Post date:** [October 23, 2022, 9:37pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/3 "2022-10-23T21:37:44Z")

</div>

Thanks for the feedback!

Will this work even without having a user create an account? IE: I go to [www.maps.google.com](http://www.maps.google.com), and can click the little arrow to find my location (brings up the notification popup to allow), and then it finds it (I’m not logged into my google account or anything)

I should note that this website isn’t just for one user, multiple users can be on the web app at the same time. I’m building a web app that has a specific points of interest - 10,000+ to be exact

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [October 23, 2022, 9:38pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/4 "2022-10-23T21:38:32Z")

</div>

The user is always required to grant location permissions on their browser. But yes should work.

---

<div class="post-metadata">

**Author:** ![nazostro](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nazostro](https://forum.bubble.io/u/nazostro)\
**Post date:** [October 23, 2022, 9:42pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/6 "2022-10-23T21:42:17Z")

</div>

Hmmmm, read through your instructions again, and I don’t think it will work.

This web app will be displaying pre-set markers (IE: locations of ATM’s around the world). So, the Type & Data Source for the map will “ATMs” and their locations

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [October 24, 2022, 3:06am UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/7 "2022-10-24T03:06:04Z")

</div>

Should still work the same.

---

<div class="post-metadata">

**Author:** ![hridoy4998](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hridoy4998/32/72158_2.png) [@hridoy4998](https://forum.bubble.io/u/hridoy4998)\
**Post date:** [October 24, 2022, 5:05am UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/8 "2022-10-24T05:05:10Z")

</div>

How can I get it for the [GMaps](https://appsgag.com/en/google-maps/details)…?

---

<div class="post-metadata">

**Author:** ![nazostro](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nazostro](https://forum.bubble.io/u/nazostro)\
**Post date:** [November 1, 2022, 4:58am UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/9 "2022-11-01T04:58:06Z")

</div>

Tried it, and doesn’t work sadly ☹ the map can only pull a single location/data source - in this case it needs to be the ATM geolocation/address.

any thoughts/ways on how to use workflows? Like, on Page Load, create this geolocation, and then display it on the map with a marker?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 1, 2023, 8:13pm UTC](https://forum.bubble.io/t/maps-element-find-current-users-location/229528/10 "2023-01-01T20:13:51Z")

</div>

Closed on January 1, 2023, 8:13pm UTC

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