Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

[Documentation or Enhancement] Way to change the FOV of the camera #304

Closed
fifiDesPlaines opened this issue May 18, 2020 · 3 comments
Closed

Comments

@fifiDesPlaines
Copy link

Hi there,

I noticed it was possible to change the FOV of the camera in Mapbox GL JS.
I didn't see this property in the doc files. Is there a way to change the FOV of the camera ?

Mapbox SDK versions: 5.9

@captainbarbosa
Copy link
Contributor

@fifiDesPlaines, do you have an example of what behavior you've seen in Mapbox GL JS?

I think you might be looking for the ability to change the pitch and rotation of the map camera - you can do this by changing the values on the MGLMapCamera object or by using any of these other camera manipulation APIs.

Here's an example for iOS, for reference.

@fifiDesPlaines
Copy link
Author

fifiDesPlaines commented May 20, 2020

@captainbarbosa, I would like to change the perspective of the camera. My aim is to get an isometric view of the map. The syntax with Mapbox GL JS is map.transform._fov = valueOfThePerspective.

I didn't find any official documentation talking about this parameters... just this github post about this topic : mapbox/mapbox-gl-js#3790 and this commit : mapbox/mapbox-gl-js@eb6c659

@stale stale bot added the archived label Dec 4, 2020
@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants