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

bug(google-maps): Markers with the same icon have the same size #1201

Closed
jcesarmobile opened this issue Sep 27, 2022 · 1 comment · Fixed by #1228
Closed

bug(google-maps): Markers with the same icon have the same size #1201

jcesarmobile opened this issue Sep 27, 2022 · 1 comment · Fixed by #1228

Comments

@jcesarmobile
Copy link
Member

jcesarmobile commented Sep 27, 2022

Bug Report

Plugin(s)

google-maps

Capacitor Version

4

Platform(s)

ios
android

Current Behavior

if the same iconUrl is used for different markers, but they are configured with different sizes, they will all be displayed the same size

Expected Behavior

every marker should be displayed with the configured size (as it works on web)

Code Reproduction

const markers: Marker[] = [
        {
          coordinate: {
            lat: 47.6,
            lng: -122.33,
          },
          title: 'Title 1',
          snippet: 'Snippet 1',
          iconUrl: 'assets/icon/pin.png',
          iconSize: {
            width: 30,
            height: 30,
          },
        },
        {
          coordinate: {
            lat: 47.6,
            lng: -122.46,
          },
          title: 'Title 2',
          snippet: 'Snippet 2',
          iconUrl: 'assets/icon/pin.png',
          iconSize: {
            width: 10,
            height: 10,
          },
        },
}]

Other Technical Details

Additional Context

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 13, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants