Skip to content

Remove Rotate and Pitch from Map #141

Closed Answered by dimfeld
Niamh1 asked this question in Q&A
Discussion options

You must be logged in to vote

Creating a map like that actually won’t work as you expect even if you don’t get an error, because you’ll end up with that map and then also the one that the MapLibre component tries to make.

We might want to build this functionality to disable rotate and pitch into the library itself as well, but for now, you can listen to the load event on the map which gives you a reference to it. Then you can call those functions to disable rotate/pitch.

Hope that helps, I’m on my phone right now so can’t type out a code sample but can do so later if you’re still having trouble.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Niamh1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants