# Map onPress documentation and broken

**URL:** <https://community.thunkable.com/t/map-onpress-documentation-and-broken/416694>\
**Category:** Questions about Thunkable X\
**Created:** [January 19, 2020, 11:03pm UTC](https://community.thunkable.com/t/map-onpress-documentation-and-broken/416694 "2020-01-19T23:03:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rem708](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rem708](https://community.thunkable.com/u/rem708)\
**Post date:** [January 19, 2020, 11:03pm UTC](https://community.thunkable.com/t/map-onpress-documentation-and-broken/416694/1 "2020-01-19T23:03:17Z")

</div>

When I first started looking at the block “Map onPress” I wondered what the outputs ‘coordinate’ and ‘position’ did. There is nothing documented in the help screens. However, hunting through the archives this has been discussed and both coordinate and position returned objects. So I could see what those objects contained I created a screen to display.  
When I first tested this today the ‘coordinate’ returned the following JSON decoded object:  
{  
“\_dispatchInstances”: null,  
“\_dispatchListeners”: null,  
“\_targetInst”: null,  
“bubbles”: null,  
“cancelable”: null,  
“currentTarget”: null,  
“defaultPrevented”: null,  
“dispatchConfig”: null,  
“eventPhase”: null,  
“isTrusted”: null,  
“nativeEvent”: null,  
“target”: null,  
“timeStamp”: null,  
“type”: null  
}  
and the position returned:  
{  
“dispatchConfig”: null,  
“\_targetInst”: null,  
“nativeEvent”: null,  
“type”: null,  
“target”: null,  
“currentTarget”: null,  
“eventPhase”: null,  
“bubbles”: null,  
“cancelable”: null,  
“timeStamp”: null,  
“defaultPrevented”: null,  
“isTrusted”: null,  
“\_dispatchListeners”: null,  
“\_dispatchInstances”: null  
}

So I could report this, I made a project specifically to reproduce.  
[Thunkable](https://x.thunkable.com/projects/5e24bd147a622b0f74fdb96f/c6cc0c86-3ff4-432a-a333-574e0794fbbd/blocks).

Before I could finish and test the service crashed so was locked out for a few hours.  
Since then there has been some strange behaviour. I could not get the map to display in ‘satellite’ with the MapType. Eventually this started working after I switched between projects where it did work fine.  
Then I found the map onPress was not working with the following:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7b36e3f1e01668dfa2ef058c43a479e911b5434.png)  
If you remove the dummy from ‘Text\_Input1 set Text to “Hi”’ Nothing happens but with that line in the objects are decoded and displayed in the corresponding Text\_Inputs, however, ‘position object’ no longer returns anything (Undefined).

Update. This was on live\_test on an Android OnePlus phone

---

<div class="post-metadata">

**Author:** ![Luc](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@Luc](https://community.thunkable.com/u/Luc)\
**Post date:** [January 23, 2020, 4:53pm UTC](https://community.thunkable.com/t/map-onpress-documentation-and-broken/416694/2 "2020-01-23T16:53:31Z")

</div>

I need the lat/lng of the OnPress map position but I Always get the mapcenter coordinates. Any way to accomplish that?

---

<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, 11:45am UTC](https://community.thunkable.com/t/map-onpress-documentation-and-broken/416694/3 "2024-11-08T11:45:52Z")

</div>


