Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Marker#setIcon does not respect anchor points when changing to a larger icon #8511

Closed

Description

@slwulf

Platform: Android
Mapbox SDK version: 4.2

Steps to trigger behavior

  1. Have a marker with a custom icon on the map with an anchor point at bottom center.
  2. Using Marker#setIcon, set the marker's icon to a larger image.
  3. The anchor point will be not be updated to the bottom center of the new, larger image.

Expected behavior

The marker should be reanchored to the same anchor point on the new image.

Actual behavior

The marker retains the anchor point on the old image.

screen shot 2017-03-23 at 10 54 11 am
screen shot 2017-03-23 at 10 54 26 am

Activity

  1. added
    Android
    on Mar 23, 2017
  2. added this to the android-v5.1.0 milestone on Mar 24, 2017
  3. tobrun commented on Mar 24, 2017

    @tobrun
    Member

    Thank you for the report, PR fixing this in #8519

  4. self-assigned this
    on Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions