Skip to content

MarkerOptions.anchor doesn't affect on position #353

Description

@almaz1213

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions