Whenever I move the map,Marker is also moving with that But I want to move the map by keeping the marker at the center of Map as constant.
How can i acheive this?
CameraPosition cameraPos = new CameraPosition.Builder()
.target(new LatLng(Double.parseDouble(currentLAT), Double.parseDouble(currentLNG)))
.zoom(10).bearing(0).tilt(0).build();
mapView.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPos), null);
Set this way:
Why don't you add your marker as a view. overlay it on top of the map.
<RelaiveLayout android:layout_width="wrap_content" android:layout_height="wrap_content" >
<mapView ... />
<ImageView android:center_in_parent="true" ... android:src="@drawable/urmarker" />
</RelativeLayout>
or if your using a MapFragment add the marker to the fragment activity