How to get the location of centered place pin on Map like uber android app

Someone please explain me how to get the location of centered place pin on Google Map Like in this Uber App. User can move the map but pin is always centered align and We can get the location as we keep moving the map.

How to get the location of centered place pin on Map like uber android app

-------------Problems Reply------------

I'm not sure what language your using so here's a javascript solution. try creating latlng variable and using that variable to both place the marker and define center. You could do Something like this

var markerLatlng = new google.maps.LatLng ("your coords here");
var mapOptions = {
zoom :5,
center: markerLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};

var marker = new google.maps.Marker({
position: markerLatlng,
map: map,
animation: google.maps.Animation.DROP,
title: "your title here",
});

Hope this helps.

Category:android Views:3 Time:2018-11-02

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.121 (s). 12 q(s)