startTrackPositions method
- required int updatePositionMs,
- required MarkerCollectionRenderSettings settings,
- 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
- GemError.success on success.
- GemError.notFound when called without a specific datasource and there is no data source in PositionService.
- Other GemError values for other errors
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,
},
dependencyId: _mapControllerId,
);
return GemErrorExtension.fromCode(resultString['result']);
}