Reputation: 65
I want to put a fixed marker in the middle of the screen where my map is located, and that marker will give me the other marker information that is nearby and provide me the neighborhood information where the marker is. Is this possible ? How can i do that ? I see a lot of apps having this functionality.
Edit:
where Should i use mMap.getCameraPosition().target
Method? on CameraMoveListener?i want when CameraMove stopped this method starts
Answer Use this Method on mMap.setOnCameraChangeListener
Upvotes: 0
Views: 1497
Reputation: 795
You need to use Relative or FrameLayout and put one Marker ImageView in center of the screen. Considering that the whole screen is of Mapview. Now to get the centerpoint latitude and longitude you can use
mMap.getCameraPosition().target
That will be the exact position of your centered ImageView.
You can achieve Uber like location picker in same manner.
Upvotes: 3