This commit is contained in:
lixiaopeng
2021-09-07 14:06:12 +08:00
parent 0aacdacb31
commit 7155a5e1dd

View File

@@ -533,8 +533,13 @@ public class AMapMarkerWrapper implements IMogoMarker, Observer {
if ( TextUtils.equals( mLastAnchorColor, anchorColor ) ) {
return;
}
mMogoMarkerOptions.anchorColor( anchorColor );
mMarker.setAnchorColor( anchorColor );
if (mMogoMarkerOptions != null) {
mMogoMarkerOptions.anchorColor( anchorColor );
}
if (mMarker != null) {
mMarker.setAnchorColor( anchorColor );
}
mLastAnchorColor = anchorColor;
}