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

Is the option in the CreateMapArgs for disabling default UI coming back? the parameter disableDefaultUI is causing an issue because this is not a known property of GoogleMapConfig

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

### Plugin(s)

@capacitor/google-maps v6

### Capacitor Version

```

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

Installed Dependencies:

@capacitor/android: not installed
@capacitor/ios: not installed
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2

```

### Platform(s)

iOS
Android
Web

### Current Behavior

![Screenshot 2024-10-07 at 5 14 27 PM](https://github.com/user-attachments/assets/76ad0e2e-e7d3-41b0-93c5-1fb1604350b9)

when I try and set the property "disableDefaultUI" in GoogleMap.create().config I get this error:

> Object literal may only specify known properties, and 'disableDefaultUI' does not exist in type 'GoogleMapConfig'.

### Expected Behavior

before, this would disable all the buttons in Google Maps so the user could not enter street view, set the map to fullscreen, or change the map type from the UI.

### Code Reproduction

sample app repository: [https://github.com/barbar-binks/demo-maps](url)
steps to reproduce the error:
- fill in the maps variable to include your Google Maps API key (can leave blank but will show watermark)
- fill in the mapId variable with a map id of your choosing (can leave blank)
- you will find the "disabledDefaultUI" property commented out, uncomment it to reproduce issue.

### Other Technical Details

- Framework: Ionic 7.2.0
- IDE: Visual Studio Code 1.93.1
- Platform: Mac OSX Sequoia 15.0
- Node.js: 20.15.1
- VS Code Extensions: Ionic (Official), Ionic Snippets (fivethree),

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