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

Min/Max zoom not applied on Android/iOS #42

Open
DevMattersUK opened this issue Sep 22, 2024 · 0 comments · May be fixed by #43
Open

Min/Max zoom not applied on Android/iOS #42

DevMattersUK opened this issue Sep 22, 2024 · 0 comments · May be fixed by #43
Labels

Comments

@DevMattersUK
Copy link

Bug Report

Plugin(s)

@capacitor/[email protected]

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

Android
iOS

Current Behavior

Defining minZoom or maxZoom in create options config work on web but have no effect on Android or iOS

Expected Behavior

Defining minZoom and maxZoom in create options config to apply min/max zoom to map instance on all device types (web/Android/iOS)

Code Reproduction

import { GoogleMap } from '@capacitor/google-maps';

const apiKey = 'YOUR_API_KEY_HERE';

const mapRef = document.getElementById('map');

const newMap = await GoogleMap.create({
  id: 'my-map',
  element: mapRef,
  apiKey: apiKey,
  config: {
    center: {
      lat: 33.6,
      lng: -117.9,
    },
    zoom: 7,
    minZoom: 6,
    maxZoom: 8,
  },
});

Other Technical Details

Additional Context

@ionitron-bot ionitron-bot bot added the triage label Sep 22, 2024
@DevMattersUK DevMattersUK linked a pull request Sep 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant