# \[Solved\] onMarkerPress Feature

**URL:** https://community.thunkable.com/t/solved-onmarkerpress-feature/115344
**Category:** Questions about Thunkable X
**Tags:** solved
**Created:** [June 21, 2019, 9:48am UTC](https://community.thunkable.com/t/solved-onmarkerpress-feature/115344 "2019-06-21T09:48:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)
#### Post date: [June 21, 2019, 9:48am UTC](https://community.thunkable.com/t/solved-onmarkerpress-feature/115344/1 "2019-06-21T09:48:19Z")

</div>

I was wondering what exactly does the map feature “onMarkerPress” actually do or can do?

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [June 21, 2019, 11:08am UTC](https://community.thunkable.com/t/solved-onmarkerpress-feature/115344/2 "2019-06-21T11:08:02Z")

</div>

Hi there,

Here’s Mark explaining the ‘event’ object from the onMarkerPressed block:

> [@\[Solved\] How do the event blocks for the Map component work?](http://community.thunkable.com/t/map-component-event-block/73742/3):
>
> Those blocks are triggered, respectively, when a user clicks on a map, long presses on a map (i.e. clicks and holds their finger down) or clicks on the the “bubble” that appears when they click on a marker. Unfortunately, there are a few known issues with the Map event blocks. One is that the onCalloutPress doesn’t appear to work at all. Another is that the output blocks for the events (e.g., "coordinate", "position" and "event") are either incorrectly named, unhelpfully named or simply unusa…

---

<div class="post-metadata">

### Author: ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)
#### Post date: [June 21, 2019, 12:45pm UTC](https://community.thunkable.com/t/solved-onmarkerpress-feature/115344/3 "2019-06-21T12:45:21Z")

</div>

Hi and yes I have seen this before but what I do not know is what events are present. For instance, looking at what he did, he knew there is properties like latitude, longitude, coordinate, nativeEvent etc but how do I know what other properties or events are available to us.

And if I get this right, the onMarkerPress feature only gives you the marker coordinates?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/4231f17f3ba3d34e9eb853d410383e2955b05319.png)

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [June 21, 2019, 1:06pm UTC](https://community.thunkable.com/t/solved-onmarkerpress-feature/115344/4 "2019-06-21T13:06:41Z")

</div>

Using these blocks:

![nativeevent](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e1e4a6e0e7a3f4684210495e80b68d696470ee6.png)

You’ll see that the properties of nativeEvent of the onMarkerPress event block are

**action** : is always “marker-press”  
**position (y,x)**: x and y co-ordinates of where the marker was on your device’s screen.  
**id** : null.  
**coordinate (longitude, latitude)**: latitude and longitude of the marker.

---

<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, 12:13pm UTC](https://community.thunkable.com/t/solved-onmarkerpress-feature/115344/5 "2024-11-08T12:13:22Z")

</div>


