Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Google map marker value outside the addListener- Not working

$
0
0

@ayubIonicpro wrote:

Hi Ionic family,
I’m trying to get the value of marker outside of addListener when marker is dragged by user and don’t know how to call another function inside addListener or get the value outside of the addListener.

TS file source code;

 google.maps.event.addListener(marker, 'dragend', function () {
        console.log(marker.getPosition().lat());
        console.log(marker.getPosition().lng());
      });

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>