zoomFactor property

double get zoomFactor
override

Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.

Example:

// Set zoom factor
_locationWindow!.zoomFactor = 150.0;
print("Set zoom factor to 150.0");

Implementation

double get zoomFactor {
    final _getFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Float Function(Pointer<Void>),
        double Function(Pointer<Void>)
      >('navigine_sdk_flutter_LocationWindow_zoomFactor_get'));

    final _zoomFactorHandle = _getFfi(this.ptr);
    final _result = _zoomFactorHandle;
    exception.checkCallResult();
    return _result;
}
set zoomFactor (double zoomFactor)
override

Implementation

set zoomFactor(double zoomFactor) {
    final _setFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Void Function(Pointer<Void>, Float),
        void Function(Pointer<Void>, double)
      >('navigine_sdk_flutter_LocationWindow_zoomFactor_set'));
    _setFfi(this.ptr, zoomFactor);
    exception.checkCallResult();
}