Keep marker centered in google maps


#1

Hello, I am making a GPS-like App. My problem is that I wanna keep my position marker in the center when the camera is centered, for this I’m just using a centered image right now, but if the user unzooms or moves the camera, the marker should stay where the user position is.

I’ve tried removing the centered image when the user touches the map and then create a position marker to give that effect. But creating the marker is delayed so it doesn’t really look good.

Any suggestion, please?

Thanks.


#2

Instead of removing marker try setMarker