# Location sensor + Maps

**URL:** <https://community.thunkable.com/t/location-sensor-maps/1087307>\
**Category:** Questions about Thunkable X\
**Tags:** googlemaps, locationsensor\
**Created:** [February 8, 2021, 6:39pm UTC](https://community.thunkable.com/t/location-sensor-maps/1087307 "2021-02-08T18:39:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.folgerts5gs](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@e.folgerts5gs](https://community.thunkable.com/u/e.folgerts5gs)\
**Post date:** [February 8, 2021, 6:39pm UTC](https://community.thunkable.com/t/location-sensor-maps/1087307/1 "2021-02-08T18:39:50Z")

</div>

Hi there,

I am new to xThunkable and I want to make an app with a maps window and that the map is following my location. I am able to have let the map zoom to my current location. Here are the issues I have:

- There is no dot on the map showing my location. I don’t mean a marker but just the blue dot showing where I am at the moment.
- The Location sensor is only giving a single update / position. It is not constantly updating. I played around with the settings timeout and maximum age in location sensor but this does not seem to matter.
- When changing the block event in the map from onMapReady to onUserLocationChange the map is not updating to the correct location.

Can someone please help me out?

Thanks

 ![Screenshot 2021-02-08 193728](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/abc46d1f4ba3bcbdea72f198379936a04392cdf4.jpeg) ![Screenshot_20210208-192959](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/20ee350316c6a936be6aabe074c91ef4c0e9b68f.jpeg)

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [February 11, 2021, 5:24pm UTC](https://community.thunkable.com/t/location-sensor-maps/1087307/2 "2021-02-11T17:24:54Z")

</div>

> [@e.folgerts5gs](#):
>
> There is no dot on the map showing my location. I don’t mean a marker but just the blue dot showing where I am at the moment.

Have you enabled this option in the map’s settings?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/1/2189e080612f2f26300175ee5b1cb9a474821f0d.png)

> [@e.folgerts5gs](#):
>
> When changing the block event in the map from onMapReady to onUserLocationChange the map is not updating to the correct location.

I see you are on Android so you may find [this](https://community.thunkable.com/t/google-maps-bug-on-android/296509) post relevant. It describes an issue with the “onUserLocationChange” block working on iOS but not on Android. I have not tested this but what I would do would be to create a timer which would get the current location every x seconds and update the coordinates of the map. May be worth trying.

> [@e.folgerts5gs](#):
>
> The Location sensor is only giving a single update / position. It is not constantly updating. I played around with the settings timeout and maximum age in location sensor but this does not seem to matter.

I believe that if you use the timer as described above, you will solve this issue as well.

K

---

<div class="post-metadata">

**Author:** ![jeffd](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jeffd](https://community.thunkable.com/u/jeffd)\
**Post date:** [February 26, 2021, 2:02am UTC](https://community.thunkable.com/t/location-sensor-maps/1087307/3 "2021-02-26T02:02:46Z")

</div>

Have you had any luck getting the map component to work w/Android?  
I’m having a similar frustrating time trying to get it to work.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/location-sensor-maps/1087307/4 "2024-11-08T13:29:32Z")

</div>


