ionic-team / ionic-team/capacitor-google-maps

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

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
32
Forks
47
PR merge metrics
No merged PRs in 30d

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.