Im new here and can’t find a suitable code for the above. It is a 3d city where the user can zoom in and out or rotate left and right. its based on a touch screen.
Just change the FOV (Field of View) for the camera. That will give you the effect you're looking for easily for zooming in and out. As far as rotation is concerned. Add an empty object and make the main camera it's child. When you rotate the parent object the camera will rotate around it keeping the same distance.
that is working but how do I set a limit to the camera to zoom in/ out and rotate. It is like setting a boundary for the users to zoom and rotate.