maxOverscaleFactorForParentTiles property

Future<double?> get maxOverscaleFactorForParentTiles

When a set of tiles for a current zoom level is being rendered and some of the ideal tiles that cover the screen are not yet loaded, parent tile could be used instead. This might introduce unwanted rendering side-effects, especially for raster tiles that are overscaled multiple times. This property sets the maximum limit for how much a parent tile can be overscaled.

Implementation

Future<double?> get maxOverscaleFactorForParentTiles async {
  return _style
      ?.getStyleSourceProperty(id, "max-overscale-factor-for-parent-tiles")
      .then((value) {
    if (value.value != null) {
      return (value.value as num).toDouble();
    } else {
      return null;
    }
  });
}