Skip to content
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

map.setCamera() angle parameter crashes android app when receiving a 3 digit number #1

Open
elazarza opened this issue Apr 2, 2024 · 0 comments
Labels

Comments

@elazarza
Copy link

elazarza commented Apr 2, 2024

Bug Report

map.setCamera() @Angle@ parameter crashes app when receiving a 3 digit number

Plugin(s)

"@capacitor/google-maps": "^5.0.0"

Capacitor Version

 Capacitor Doctor   

Latest Dependencies:       

  @capacitor/cli: 5.7.4    
  @capacitor/core: 5.7.4   
  @capacitor/android: 5.7.4
  @capacitor/ios: 5.7.4    

Installed Dependencies:    

  @capacitor/cli: 5.5.1    
  @capacitor/core: 5.5.1   
  @capacitor/android: 5.5.1
  @capacitor/ios: 5.5.1    

Platform(s)

Android
(iOS not checked)

Current Behavior

after creating a map with GoogleMap.create(), using setCamera() on the map to set camera position and angle, if putting a 3 digit number in the angle argument the app crashes.

Expected Behavior

app not crashing and angle reverting to highest valid input (45)

Code Reproduction

this.map!.setCamera({ zoom: 18, bearing, coordinate, animate: true, angle: 100 }).then()

Other Technical Details

Additional Context

@ionitron-bot ionitron-bot bot added the triage label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant