# \[Solved\] Adding marker when clicking on map

**URL:** <https://community.thunkable.com/t/solved-adding-marker-when-clicking-on-map/142183>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [July 13, 2019, 11:09pm UTC](https://community.thunkable.com/t/solved-adding-marker-when-clicking-on-map/142183 "2019-07-13T23:09:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [October 21, 2019, 12:58am UTC](https://community.thunkable.com/t/solved-adding-marker-when-clicking-on-map/142183/10 "2019-10-21T00:58:07Z")

</div>

@Chris @CBVG, I ran into the same thing when creating this tutorial app for the map component, but used a variable instead to get everything working:

> [@Cartographr: How to work with the Map Component](http://community.thunkable.com/t/cartographr-how-to-work-with-the-map-component/230549):
>
> Click to Add Markers One request we hear from Thunkers is the ability to tap on the map component and then add a marker to the location that was just tapped. In this first example we’ll learn how to do just that. Map1.onPress This is the event we need to understand to make everything work. The onPress event has two outputs, coordinate and position - but other than the names of these outputs we don’t know much more about them. Since coordinate seems like the most promising, let’s take a closer l…

---

_[View the full topic](https://community.thunkable.com/t/solved-adding-marker-when-clicking-on-map/142183)._
