getOffsetForDrawingAtPoint method
@return The offset for drawing at the specific point
. This allows conditional adjusting of the Marker position.
If you have no adjustments to make, return getOffset().
@param posX This is the X position at which the marker wants to be drawn. You can adjust the offset conditionally based on this argument. @param posY This is the X position at which the marker wants to be drawn. You can adjust the offset conditionally based on this argument.
Implementation
@override
MPPointF getOffsetForDrawingAtPoint(double? posX, double? posY) {
return getOffset();
}