scale property

double get scale

Current map view scale expressed as meters per millimeter on screen.

Provides the scale factor that indicates how many meters in the real world are represented by one millimeter on the rendered map at the current camera position, zoom and view angle. This value is useful for drawing scale bars, estimating distances from screen measurements, or adapting UI elements based on map scale. The value changes when the camera, zoom or view angle is modified.

Returns

  • Scale in meters corresponding to 1 millimeter on the rendered map (double).

See also:

Implementation

double get scale {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapView',
    'getScale',
  );

  return resultString['result'];
}