-
-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adding back bounds #2015
feat: adding back bounds #2015
Conversation
I'm doing some testing, and it appears that when rendering more than 2 maps, the zoom cannot be computed |
android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.kt
Outdated
Show resolved
Hide resolved
android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/CameraStop.java
Show resolved
Hide resolved
I think in fact that the width / height of the camera is not correctly set if out of the screen. If I reduce the size of the map, It works for the number of maps that are displayed, not the one hidden. |
@@ -616,6 +616,7 @@ class Camera extends React.Component { | |||
case Camera.Mode.Linear: | |||
return MapboxGL.CameraModes.Linear; | |||
case Camera.Mode.None: | |||
return MapboxGL.CameraModes.None; | |||
case Camera.Mode.Move: | |||
return MapboxGL.CameraModes.Move; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None
is same as Move
, but it's a bit of a mess as most implementation exports MapboxGL.CameraModes.None
, but iOS on v10 only export Move
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you disable the animation on iOS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move
just jumps without animation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think logoEnabled, and compassEnabled changes needs revert
Description
bounds
to<MapboxGL.Camera />
.bounds
.animationMode
.Checklist
yarn generate
in the root folderCHANGELOG.md
index.d.ts
)/example
)