startTrackPositions method

GemError startTrackPositions({
  1. required int updatePositionMs,
  2. required MarkerCollectionRenderSettings settings,
  3. DataSource? dataSource,
})

Start the sense data source improved position tracking on map by rendering a marker polyline between relevant map links points

Parameters

  • IN updatePositionMs The tracked position collection update frequency. High frequency may decrease rendering performances on low end devices
  • IN settings The markers collection rendering settings in the map view
  • IN dataSource The DataSource object which positions are tracked

Returns

Implementation

GemError startTrackPositions({
  required int updatePositionMs,
  required MarkerCollectionRenderSettings settings,
  DataSource? dataSource,
}) {
  final OperationResult resultString = objectMethod(
      _pointerId, 'MapViewExtensions', 'startTrackPositions',
      args: <String, Object>{
        'updatePositionMs': updatePositionMs,
        'settings': settings,
        if (dataSource != null) 'dataSource': dataSource.pointerId,
      });

  return GemErrorExtension.fromCode(resultString['result']);
}