bmw-tech/atlas

Marker == operator ignores anchor property

Closed this issue · 1 comments

The custom implementation of the == operator of the Marker class at

@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other.runtimeType != runtimeType) return false;
final Marker typedOther = other;
return id == typedOther.id &&
position == typedOther.position &&
icon == typedOther.icon &&
zIndex == typedOther.zIndex;
}

ignores the anchor property. The getter for the hashcode takes it into account, though, and all other annotation classes also seem to check for equality of all members. If this isn't intentional, I'd be happy to supply a quick PR for this.

Fixed on #122