Map options extend CameraOptions, so you can set more than just center and zoom. See the example: https://docs.mapbox.com//mapbox-gl-js/example/set-perspective/
No-Library (pure JS), HTML, CSS, JavaScript