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

mapTypeControl cannot be enabled

Open
#68 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@6.0.1

### Capacitor Version
Latest Dependencies:

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

Installed Dependencies:

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

### Platform(s)
android

### Current Behavior
adding:
` mapTypeControl: true,
mapTypeControlOptions: {
mapTypeIds: [MapType.Hybrid, MapType.Terrain],
position: 6.0
}`
to CreateMapArgs.config has no effect

### Expected Behavior
a control to change the map type should appear

### Other Technical Details
the same goes for mapTypeId property, however when using the setMapType() method it works

Contributor guide

Open the contributing guide

Research direction

Start at the Android handling for CreateMapArgs.config and compare it with the setMapType() entry point, which the report says works. Reproduce the issue with mapTypeControl, mapTypeControlOptions, and mapTypeId; done means the map-type control appears and the configured initial map type takes effect.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.