ElectronicHorizonDataLoaderOptions.withValues constructor

const ElectronicHorizonDataLoaderOptions.withValues(
  1. SegmentDataLoaderOptions segmentDataLoaderOptions,
  2. int segmentDataCacheSize,
  3. int corridorHalfWidthInMeters,
  4. int corridorLengthInMeters,
)

Creates a new instance.

Offline availability: This property is available online and offline.

  • segmentDataLoaderOptions Specifies which data is loaded for electronic horizon segments and corridor segments. A corridor listener requires the polyline option to be enabled.
  • segmentDataCacheSize The maximum number of segment-data entries kept in the in-memory LRU cache.
  • corridorHalfWidthInMeters The distance in meters from the most-preferred path to each side of the corridor.
  • corridorLengthInMeters The maximum distance in meters loaded ahead of the current position on the most-preferred path. The corridor can be shorter if the electronic horizon ends first. A value of 0 disables corridor fetching.

Implementation

const ElectronicHorizonDataLoaderOptions.withValues(this.segmentDataLoaderOptions, this.segmentDataCacheSize, this.corridorHalfWidthInMeters, this.corridorLengthInMeters);