# Current Geographic position \[Solved\] - it was a Chrome bug causing the problem

**URL:** <https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512>\
**Category:** Bugs\
**Created:** [March 8, 2018, 7:57pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512 "2018-03-08T19:57:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 8, 2018, 7:57pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/1 "2018-03-08T19:57:47Z")

</div>

Bubble is not returning my current geographic position.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/8/289b2e51fdf1fa0a14348ad79bd01a4bd7af8e9c.png)

Editor:

> **[Bubble Editor - location-issue](https://bubble.io/page?name=index&id=location-issue&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![dambusmedia](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dambusmedia](https://forum.bubble.io/u/dambusmedia)\
**Post date:** [March 8, 2018, 10:52pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/2 "2018-03-08T22:52:09Z")

</div>

Your demo’s working fine for me. Perhaps your browser is blocking location requests?

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 4:04pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/3 "2018-03-13T16:04:04Z")

</div>

It’s been intermittent. Sometimes this happens on the refresh. I’ve checked with different browsers. I’ll continue checking. Thanks!

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 13, 2018, 4:15pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/4 "2018-03-13T16:15:51Z")

</div>

Several possibilities, unlikely to be a bug.

Have you added your own Google API key, perhaps it is being rate limited ?

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 5:23pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/5 "2018-03-13T17:23:26Z")

</div>

> [@NigelG](#):
>
> unlikely to be a bug.

Yeah, I had lofty hopes on that. I’m wondering if it’s a resources issue. This hadn’t been a problem until very recently. I need to do a lot of geo processing on an upcoming app.

I had set up the keys, but it couldn’t hurt to refresh.

Does Bubble use the HTML5 API directly? Might it be a faster solution for finding multiple locations in a single API workflow.  
[HTML Geolocation API](https://www.w3schools.com/html/html5_geolocation.asp)?

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 5:58pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/6 "2018-03-13T17:58:31Z")

</div>

Get ready for a very minimalist video. Spoiler alert: the address isn’t calculated. Even without geocoding, after about 30 seconds, the lat/lng has not popped up.  
There is nothing else on this page. I’m stumped.  
[https://monosnap.com/file/NxgxwuG2ZpuRfxehCUPWqBNAGUwK6U](https://monosnap.com/file/NxgxwuG2ZpuRfxehCUPWqBNAGUwK6U)

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 13, 2018, 7:53pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/7 "2018-03-13T19:53:57Z")

</div>

Does anything appear in the console ?

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 9:17pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/8 "2018-03-13T21:17:02Z")

</div>

The text element is drawn on the screen, but but it seems to time out. In the console, all the text attributes were noted…

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/f/ef60680a58853ac83188d937db075d2da20208ac.png)

…but now I’m noticing that even the static text within the element doesn’t render as well

![image](https://us1.discourse-cdn.com/bubble/original/3X/5/4/54b3d66476ba1b883225ae2744feb7b9cd695f3e.png)

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 13, 2018, 9:31pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/9 "2018-03-13T21:31:06Z")

</div>

So if you right click the desktop you should get something that let’s you see any error messages.

Not bubble but the browser.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 9:49pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/10 "2018-03-13T21:49:01Z")

</div>

Which desktop?

there was not an error noted in the inspector  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/8/d8efeb4c392c405197030bd9e0d6ff2e7f0f427c.png)

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 9:59pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/11 "2018-03-13T21:59:52Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/2/2/229e2bfe97c3990632d23fdd090dc122024564dd.png)

Now I see an error (and hidden bubble promo).

But there aren’t referrer restrictions:

![image](https://us1.discourse-cdn.com/bubble/original/3X/8/7/877aafc11899e4b0693a93975ae2770130581470.png)

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 13, 2018, 10:06pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/12 "2018-03-13T22:06:04Z")

</div>

a clear shot of the restrictions

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/3/838cfeed31fc54e1727a15c9f590d185081f02a7.png)

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 14, 2018, 7:07am UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/13 "2018-03-14T07:07:12Z")

</div>

You get that error when you are using the wrong key. For example using a service account key instead of an API key.

Try recreating a key for Javascript here …

> **[Overview  |  Maps JavaScript API
       |  Google Developers](https://developers.google.com/maps/documentation/javascript/tutorial)**
>
> Get started with the Google Maps JavaScript API. View a simple example, learn the concepts, and create custom maps for your site.

And use that.

As a quick test …

Use this …

AIzaSyB6HqhgwPEiiT1FBxUBJtu1DFvPW\_8PKAI

…that I created just now, and have tested.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [March 14, 2018, 3:32pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/14 "2018-03-14T15:32:19Z")

</div>

Get ready for the weirdness.  
I replaced my key with yours. I tested it and it worked! 1-2 seconds after the page loaded, the `lat/lng` showed up. It’s slower than before, but I thought we had fixed it. Then I tested it again, and it wouldn’t load. I added a repeating group with a `distance to`, which is my ultimate goal here, tested it, and neither worked.

[https://monosnap.com/file/l8wZJeyHPJyYceHd1bWVP5hsgHnthm](https://monosnap.com/file/l8wZJeyHPJyYceHd1bWVP5hsgHnthm)  
At the end of the video, I opened the Chrome dev tools, and this time there wasn’t an error. 🤪

UPDATE: The entire thing was a Chrome Bug

---

<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:** [March 22, 2018, 7:57pm UTC](https://forum.bubble.io/t/current-geographic-position-solved-it-was-a-chrome-bug-causing-the-problem/25512/15 "2018-03-22T19:57:57Z")

</div>

Closed on March 22, 2018, 7:57pm UTC

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