Skip to content
Discussion options

You must be logged in to vote

I found that you can disable this new behaviour by passing aroundCenter: false in the Map constructor options, i.e.

const map = new maplibregl.Map({
  // ...
  aroundCenter: false
})

or with react-map-gl:

<Map
  {...{aroundCenter: false}
  {/* ... other props ... */}
/>

This option is not in the typings, so you will need to cast in TypeScript, but the same options object gets passed down all the way to new HandlerManager(...) which trickles down to generateMouseRotationHandler().

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@Fabioni
Comment options

@HarelM
Comment options

@Fabioni
Comment options

Comment options

You must be logged in to vote
1 reply
@johannkor
Comment options

Comment options

You must be logged in to vote
2 replies
@larsmaxfield
Comment options

@Fabioni
Comment options

Answer selected by Fabioni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants