ratio property

Point<double> ratio
final

The normalized coordinate ratio for aligning the marker within the map widget. This point follows a normalized coordinate system where:

  • (-1.0, -1.0) aligns the marker with the top-left corner of the map widget.
  • (1.0, 1.0) aligns the marker with the bottom-right corner of the map widget.
  • (0.0, 0.0) aligns the marker with the center of the map widget.

The ratio is used to scale the marker's position proportionally to the size of the map widget, allowing for responsive design across different screen sizes.

Implementation

final Point<double> ratio;