# latitude and longitude args on MapView =\> MarkerTapped Event

**URL:** <https://forums.fusetools.com/t/latitude-and-longitude-args-on-mapview-markertapped-event/4337>\
**Category:** Feature Suggestions\
**Created:** [June 25, 2017, 8:02pm UTC](https://forums.fusetools.com/t/latitude-and-longitude-args-on-mapview-markertapped-event/4337 "2017-06-25T20:02:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Cubissimo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/diego_cubissimo/32/134_2.png) [@Diego\_Cubissimo](https://forums.fusetools.com/u/Diego_Cubissimo)\
**Post date:** [June 25, 2017, 8:02pm UTC](https://forums.fusetools.com/t/latitude-and-longitude-args-on-mapview-markertapped-event/4337/1 "2017-06-25T20:02:32Z")

</div>

It would be great to have latitude and longitude on `MapView` `MarkerTapped` Event.

Since scenarios like the same place have multiple addresses and we can’t handle the behavior by label only.

follow a reprodution:

```auto
<App Background="#000">
  <iOS.StatusBarConfig Style="Light" />
  <JavaScript>

  function onMarkerTapped (args)
  {
    console.log(`Marker label ${args.label} pressed: ${args.latitude}, ${args.longitude}`);
  }
  module.exports = {
    onMarkerTapped:onMarkerTapped
  }
  </JavaScript>
  <NativeViewHost>
    <MapView ux:Name="mapView" ShowMyLocation="true" ShowMyLocationButton="true" ShowCompass="true" MarkerTapped="{onMarkerTapped}">
      <MapMarker Latitude="-23.566844" Longitude="-46.647296" Label="Marker 1"/>
      <MapMarker Latitude="-23.566544" Longitude="-46.647596" Label="Marker 2"/>
    </MapView>
  </NativeViewHost>
</App>

```

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [June 26, 2017, 8:31am UTC](https://forums.fusetools.com/t/latitude-and-longitude-args-on-mapview-markertapped-event/4337/2 "2017-06-26T08:31:26Z")

</div>

Hi Diego,

a solution for this is already implemented and is coming to a future Fuse version with updated bundled fuselibs.

There is going to be a `Tapped` event on `MapMarker` itself, which returns the data context of the data-bound marker. You can see the details of the implementation here: [https://github.com/fusetools/fuselibs-public/pull/8](https://github.com/fusetools/fuselibs-public/pull/8)

Also, if you’re up to it, you are welcome to get this fix right away by using a local checkout of fuselibs.

---

<div class="post-metadata">

**Author:** ![Diego\_Cubissimo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/diego_cubissimo/32/134_2.png) [@Diego\_Cubissimo](https://forums.fusetools.com/u/Diego_Cubissimo)\
**Post date:** [June 26, 2017, 11:15am UTC](https://forums.fusetools.com/t/latitude-and-longitude-args-on-mapview-markertapped-event/4337/3 "2017-06-26T11:15:08Z")

</div>

Perfect! tks bro
