minimumTileUpdateInterval property

Future<double?> get minimumTileUpdateInterval

Minimum tile update interval in seconds, which is used to throttle the tile update network requests. If the given source supports loading tiles from a server, sets the minimum tile update interval. Update network requests that are more frequent than the minimum tile update interval are suppressed. Default value: 0.

Implementation

Future<double?> get minimumTileUpdateInterval async {
  final localStyle = style;
  if (localStyle == null) return null;
  final raw = (await localStyle.getStyleSourceProperty(
    id,
    "minimum-tile-update-interval",
  )).value;
  if (raw == null) return null;
  return (raw as num).toDouble();
}