scale property
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:
- GemMapController.registerOnRenderMapScale - Listen for scale changes
- viewport - Viewport dimensions in physical pixels.
Implementation
double get scale {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'getScale',
);
return resultString['result'];
}