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

MarkerOptions.anchor doesn't affect on position #353

Open
almaz1213 opened this issue Feb 24, 2021 · 0 comments
Open

MarkerOptions.anchor doesn't affect on position #353

almaz1213 opened this issue Feb 24, 2021 · 0 comments

Comments

@almaz1213
Copy link

package.json:

...
    "@ionic-native/core": "^5.0.0",
    "@ionic-native/device": "^5.21.6",
    "@ionic-native/google-maps": "^5.27.0-beta-20200630",
    "@ionic/angular": "^5.0.4",
    "cordova-browser": "6.0.0"
...

using cordova browser.

this.map.addMarker({
          position: {lat: this.lat, lng: this.lon},
          icon: {
            url: '../../assets/icon/eye.png',

            size: {
              width: 32,
              height: 32
            }
          },
          anchor: [16, 16]
        })

the marker appears at the same place in any anchor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant