# \[Solved\] Unable to point marker map component

**URL:** <https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819>\
**Category:** Maps\
**Created:** [June 11, 2022, 5:20pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819 "2022-06-11T17:20:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.jacob2012x](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thomas.jacob2012x](https://community.thunkable.com/u/thomas.jacob2012x)\
**Post date:** [June 11, 2022, 5:20pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/1 "2022-06-11T17:20:32Z")

</div>

location not coming in map when screen starts…requesting for support

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/27171f515d3a9deecd870b7a2f22e02c261598c2.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/d/3d98f060a8569b3b6e94bf90a66e1d1a60c65e42.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [June 11, 2022, 6:05pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/2 "2022-06-11T18:05:53Z")

</div>

Can you share a minimal example of this? A project url or remix link would work.

---

<div class="post-metadata">

**Author:** ![thomas.jacob2012x](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thomas.jacob2012x](https://community.thunkable.com/u/thomas.jacob2012x)\
**Post date:** [June 11, 2022, 6:12pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/3 "2022-06-11T18:12:13Z")

</div>

hey jared- i figured it out

thank you…will be back with next qstn

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [June 11, 2022, 6:42pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/4 "2022-06-11T18:42:43Z")

</div>

Care to share what the issue was? It might help out other Thunkers in the future 🙂

---

<div class="post-metadata">

**Author:** ![thomas.jacob2012x](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thomas.jacob2012x](https://community.thunkable.com/u/thomas.jacob2012x)\
**Post date:** [June 11, 2022, 7:04pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/5 "2022-06-11T19:04:11Z")

</div>

Sure thing- i used the map component it wasn’t loading my location. I used different blocks.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/6/b69809eedbf7d3923034cf8e8b7d88d789018dec.png)

But i have got another issue now- how can i calculate the length of the polyline in the map

---

<div class="post-metadata">

**Author:** ![paulovaz72](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/paulovaz72/32/119071_2.png) [@paulovaz72](https://community.thunkable.com/u/paulovaz72)\
**Post date:** [June 11, 2022, 7:52pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/6 "2022-06-11T19:52:25Z")

</div>

To calculate distance on maps you will need to use an external API like [Google’s distance matrix API](https://developers.google.com/maps/documentation/distance-matrix/overview), which is not very difficult to implement.

Regards,

Paulo Vaz

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [June 11, 2022, 9:57pm UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/7 "2022-06-11T21:57:45Z")

</div>

> [@paulovaz72](#):
>
> which is not very difficult to implement.

Or turn this into blocks! 🙂

> [@\[Solved\] How do I find/add Map Markers Nearest to the User (Haversine formula)](https://community.thunkable.com/t/loading-map-markers-near-user/598411/6):
>
> That is a good suggestion @drted, did you check out the app I linked to above? it demonstrates how to tie into a backend that does the work for you. It does search in radius and loads markers within a set radius of the user. all the phone does is send the query and load the markers! Haversine is good. but iit only tells you distance. you’d have to do this for each point on the map, right? function haversineDistance(coords1, coords2, isMiles) { function toRad(x) { return x \* Math.PI / 180…

---

<div class="post-metadata">

**Author:** ![thomas.jacob2012x](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thomas.jacob2012x](https://community.thunkable.com/u/thomas.jacob2012x)\
**Post date:** [June 12, 2022, 5:51am UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/8 "2022-06-12T05:51:49Z")

</div>

@paulovaz72 thank you for prompt support.

@jared lets have some math then 😃

---

<div class="post-metadata">

**Author:** ![paulovaz72](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/paulovaz72/32/119071_2.png) [@paulovaz72](https://community.thunkable.com/u/paulovaz72)\
**Post date:** [June 13, 2022, 1:58am UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/9 "2022-06-13T01:58:28Z")

</div>

Well… depending on the app requirements use this calculation is enough.

In my case, I need to calculate the distance and time of a route between two points in the map, that usually is not a continuous and straight foward line 🙂

But it’s a fantastic approach.

Anyway, hope to see improvements in the maps blocks to calculate distance, time & routes…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 11, 2022, 1:58am UTC](https://community.thunkable.com/t/solved-unable-to-point-marker-map-component/1920819/10 "2022-09-11T01:58:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
