I want to show Marker in the Google Map. Its position will always be at edges of screen of device, pointing to a Lat/Lng, which is outside of the current map view? When the user drag in that direction, Marker will be gone if that Lat/Lng is visible. Else that Marker will continuously pointing to device edge.
I have found a way to show the Marker in the center. But could not find a way, how to show at the edges?
@Override
public void onCameraChange(CameraPosition cameraPosition) {
Log.d(TAG, "OnCameraChangeListener");
mMap.clear();
mMap.addMarker(new MarkerOptions().position(cameraPosition.target)).setTag("Center");
LatLngBounds bounds = mMap.getProjection().getVisibleRegion().latLngBounds;
}
Thanks, Ajeet Singh